Can I use XPath to filter elements by CSS properties?

Posted by int3 on Stack Overflow See other posts from Stack Overflow or by int3
Published on 2010-04-25T10:28:30Z Indexed on 2010/04/25 10:33 UTC
Read the original article Hit count: 171

Filed under:
|
|

Or do I have to do something like this:

var nodes = document.getChildNodes();
for (var i in nodes) {
    if (nodes[i].getPropertyValue('someproperty') == 'somevalue')
        // do stuff
}

© Stack Overflow or respective owner

Related posts about xpath

Related posts about css