Skip to content

Instantly share code, notes, and snippets.

@toadkicker
Created July 15, 2013 20:56
Show Gist options
  • Select an option

  • Save toadkicker/6003393 to your computer and use it in GitHub Desktop.

Select an option

Save toadkicker/6003393 to your computer and use it in GitHub Desktop.
DOM searching for a string
var search = document.evaluate('//text()[contains(., \"username\")]',
document, null, XPathResult.ANY_TYPE, null);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment