diff --git a/doc/css_selectors.md b/doc/css_selectors.md index 7f520de..1f0af33 100644 --- a/doc/css_selectors.md +++ b/doc/css_selectors.md @@ -364,7 +364,7 @@ numbers="1 2 3" />` but _not_ the element ``. The corresponding XPath expression is quite complex due to a lack of a `ends-with` function in XPath. Instead one has to resort to using the `substring()` function. As such the corresponding XPath expression for -`foo[bar="baz"]` is as following: +`foo[bar$="baz"]` is as following: foo[substring(@bar, string-length(@bar) - string-length("baz") + 1, string-length("baz")) = "baz"]