From 5f037c76cc7b89eaa2ad287fbc523191f3496d48 Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Fri, 4 Sep 2015 14:38:45 +0200 Subject: [PATCH] Corrected CSS ends-with example This was supposed to use the "$=" operator and not the "=" operator. --- doc/css_selectors.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"]