Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

But can't they just use an xpath expression to test the computed text content of a node, like `/path/to/ad/div[contains(., 'sponsored')]`? In that expression, there could be any number of nested elements inside the terminal `<div>` and it wouldn't matter. (And you'd probably have to use a regex test to account for tricky white space.)


The word sponsored in inside an SVG element with a linked `use` tag, so it's not that simple.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: