Merge branch 'pr-447'

* pr-447:
  Update xpath.md
This commit is contained in:
Rico Sta. Cruz 2018-03-15 17:40:08 +08:00
commit 0243879348
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
1 changed files with 2 additions and 2 deletions

View File

@ -43,8 +43,8 @@ Works in Firefox and Chrome.
| CSS | Xpath | ? |
| ---- | ---- | -- |
| `#id` | `//[@id="id"]` | [?](#predicates) |
| `.class` | `//[@class="class"]` *...[kinda](#class-check)* | |
| `#id` | `//*[@id="id"]` | [?](#predicates) |
| `.class` | `//*[@class="class"]` *...[kinda](#class-check)* | |
| `input[type="submit"]` | `//input[@type="submit"]` | |
| `a#abc[for="xyz"]` | `//a[@id="abc"][@for="xyz"]` | [?](#chaining-order) |
| `a[rel]` | `//a[@rel]` | |