From a15966b88f95402d4c00ef2b084dd345b3a45015 Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Wed, 5 Nov 2014 00:50:09 +0100 Subject: [PATCH] Use "descendant" in the CSS selector spec. --- doc/css_selectors.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/css_selectors.md b/doc/css_selectors.md index bab240a..8c94bab 100644 --- a/doc/css_selectors.md +++ b/doc/css_selectors.md @@ -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` element. -In XPath the corresponding axis for this is `descendant-or-self`. In other -words, this CSS expression: +In XPath the corresponding axis for this is `descendant`. In other words, this +CSS expression: foo is the same as this XPath expression: - descendant-or-self::foo + descendant::foo In turn this CSS expression: @@ -86,10 +86,10 @@ In turn this CSS 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 -in order to enhance readability. +Note that in the various XPath examples the `descendant` axis is omitted in +order to enhance readability. ### Syntax