From f6d311aebfca44c1310d8b87741ca6c52a6999b1 Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Sun, 11 Feb 2018 18:38:10 +0200 Subject: [PATCH] xpath: fix possible typo --- xpath.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xpath.md b/xpath.md index 017354baf..aba06342b 100644 --- a/xpath.md +++ b/xpath.md @@ -51,7 +51,8 @@ Works in Firefox and Chrome. | ---- | ---- | -- | | `a[href^='/']` | `//a[starts-with(@href, '/')]` | [?](#string-functions) | | `a[href$='pdf']` | `//a[ends-with(@href, '.pdf')]` | | -| `a[href~='://']` | `//a[contains(@href, '://')]` *...[kinda](#class-check)* | | +| `a[href*='://']` | `//a[contains(@href, '://')]` | | +| `a[rel~='help']` | `//a[contains(@rel, 'help')]` *...[kinda](#class-check)* | | {: .xp} ### Order selectors @@ -168,7 +169,7 @@ Predicates ### Predicates ```bash -//div[true()] +//div[true()] //div[@class="head"] //div[@class="head"][@id="top"] ```