xpath: fix another possible typo and duplication
This commit is contained in:
parent
d6365a8ef9
commit
76deb80528
3
xpath.md
3
xpath.md
|
@ -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`.
|
||||||
|
|
Loading…
Reference in New Issue