Merge PR #395 (@vsemozhetbyt)

* pr-395:
  xpath: fix possible typo
This commit is contained in:
Rico Sta. Cruz 2018-03-15 17:23:49 +08:00
commit d34b21ca8c
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
1 changed files with 3 additions and 2 deletions

View File

@ -51,7 +51,8 @@ Works in Firefox and Chrome.
| ---- | ---- | -- | | ---- | ---- | -- |
| `a[href^='/']` | `//a[starts-with(@href, '/')]` | [?](#string-functions) | | `a[href^='/']` | `//a[starts-with(@href, '/')]` | [?](#string-functions) |
| `a[href$='pdf']` | `//a[ends-with(@href, '.pdf')]` | | | `a[href$='pdf']` | `//a[ends-with(@href, '.pdf')]` | |
| `a[href~='://']` | `//a[contains(@href, '://')]` *...[kinda](#class-check)* | | | `a[href*='://']` | `//a[contains(@href, '://')]` | |
| `a[rel~='help']` | `//a[contains(@rel, 'help')]` *...[kinda](#class-check)* | |
{: .xp} {: .xp}
### Order selectors ### Order selectors
@ -168,7 +169,7 @@ Predicates
### Predicates ### Predicates
```bash ```bash
//div[true()] //div[true()]
//div[@class="head"] //div[@class="head"]
//div[@class="head"][@id="top"] //div[@class="head"][@id="top"]
``` ```