Any time a "/" is found we consider it an XPath and don't do a plain text search.
Created attachment 23865 [details] Proposed patch
Comment on attachment 23865 [details] Proposed patch r=me
Landed in r36978.