XPath
XPath is a language for pointing at parts of a web page by where they sit in its . //a[@target="_blank"] selects every link that opens in a new tab, and //main//h2 selects every second-level heading inside the page's main content.
In Silktide, a policy can use an XPath selector rule to find elements that its other kinds of rule cannot describe.
Learn more
- XML Path Language (XPath) 1.0 - the W3C specification
- XPath (MDN) - an introduction with examples
- Policies