You can search the content of attributes. For example, the query:
dog INPATH(//A/@B)
Finds the document
<C><A B="snoop dog"> </A> </C>
Scripting on this page enhances content navigation, but does not change the content in any way.