xpath: fix another possible typo and duplication

This commit is contained in:
Vse Mozhet Byt 2018-02-11 19:09:01 +02:00
parent d6365a8ef9
commit 76deb80528
1 changed files with 2 additions and 3 deletions

View File

@ -168,7 +168,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"]
``` ```
@ -398,8 +398,7 @@ count(//*) # count all elements
Finds a `<section>` that directly contains `h1#section-name` Finds a `<section>` that directly contains `h1#section-name`
```bash ```bash
# Find a <section> that contains h1#section-name //section[//h1[@id='section-name']]
//section[//*[@id='section-name']]
``` ```
Finds a `<section>` that contains `h1#section-name`. Finds a `<section>` that contains `h1#section-name`.