Methods and apparatus, including computer program products, implementing
and using techniques for searching for a string of characters on a web
page. A user input is received containing a text search string to be
identified on a web page loaded in a web browser on a computer. A common
substring between the text search string and a hypertext markup language
representation of the web page is determined. A document object model
tree node that includes the common substring is identified. It is
verified a remainder of the text search string is included in one or more
surrounding nodes of the document object model tree.