Use "descendant" in the CSS selector spec.
This commit is contained in:
parent
a586a512b8
commit
a15966b88f
|
@ -71,14 +71,14 @@ elements at any position in the document. On the other hand, the selector
|
||||||
`foo bar` only matches any `bar` elements that are a descedant of any `foo`
|
`foo bar` only matches any `bar` elements that are a descedant of any `foo`
|
||||||
element.
|
element.
|
||||||
|
|
||||||
In XPath the corresponding axis for this is `descendant-or-self`. In other
|
In XPath the corresponding axis for this is `descendant`. In other words, this
|
||||||
words, this CSS expression:
|
CSS expression:
|
||||||
|
|
||||||
foo
|
foo
|
||||||
|
|
||||||
is the same as this XPath expression:
|
is the same as this XPath expression:
|
||||||
|
|
||||||
descendant-or-self::foo
|
descendant::foo
|
||||||
|
|
||||||
In turn this CSS expression:
|
In turn this CSS expression:
|
||||||
|
|
||||||
|
@ -86,10 +86,10 @@ In turn this CSS expression:
|
||||||
|
|
||||||
is the same as this XPath expression:
|
is the same as this XPath expression:
|
||||||
|
|
||||||
descendant-or-self::foo/descendant-or-self::bar
|
descendant::foo/::bar
|
||||||
|
|
||||||
Note that in the various XPath examples the `descendant-or-self` axis is omitted
|
Note that in the various XPath examples the `descendant` axis is omitted in
|
||||||
in order to enhance readability.
|
order to enhance readability.
|
||||||
|
|
||||||
### Syntax
|
### Syntax
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue