Query DOM with Xpath in Chrome

August 25, 2011 at 3:26 pm
filed under Uncategorized

Go to Developer Tools, hit ‘Escape’ on the Elements tab, then type :-

document.evaluate( 'count(//p)', document, null, XPathResult.UNORDERED_NODE_ITERATOR_TYPE, null );

no comments

RSS /

Comments are closed.