diff --git a/xpath.md b/xpath.md index afbe5e42..5b75592a 100644 --- a/xpath.md +++ b/xpath.md @@ -234,7 +234,7 @@ Order is significant, these two are different. ### Nesting predicates ``` -//section[//h1[@id='hi']] +//section[.//h1[@id='hi']] ``` This returns `
` if it has an `

` descendant with `id='hi'`.