# Procedural HTML filters

Back

### Filters

### Tests

`^#phf #a1 .fail:has(b)`
`^#phf #a2 .fail:has(> a > b)`
`^#phf #a3 .fail:not(:has(c))`
I am a needle!!!
`^#phf #a4 .fail:has-text(needle)`
I am a needle!!!
`^#phf #a5 .fail:has-text(/NEEDLE/i)`
I am a needle!!!
`^#phf #a6 .fail:not(:has-text(haystack))`
`^#phf #a7 .fail > a > b:nth-ancestor(2)`
`^#phf #a8:xpath(.//b/../..)`
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magnaaliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
`^#phf #a9 .fail:min-text-length(300)`
`^#phf #a10 .pass > a:has(b) + .fail`
`^#phf #a11 .pass > a:has(b) + .fail:has(b)`
`^#phf #a12 .fail:has(+ a)`
`^#phf #a13 .fail:has(~ a:has(b))`
`^#phf #a14 b:upward(2)`
`^#phf #a15 b:upward(.fail)`