diff --git a/xpath.md b/xpath.md index aba06342b..47394f573 100644 --- a/xpath.md +++ b/xpath.md @@ -399,8 +399,7 @@ count(//*) # count all elements Finds a `
` that directly contains `h1#section-name` ```bash -# Find a
that contains h1#section-name -//section[//*[@id='section-name']] +//section[//h1[@id='section-name']] ``` Finds a `
` that contains `h1#section-name`.