I'm using the xpath engine on Firefox. I have html:
<span>
<b>prefix one</b> not bold part
</span>
<span>
prefix two not bold part
</span>
I want all the span
s that have child text that start with "prefix one".
I tried the xpath:
//span[starts-with(child::text(), "prefix one")]
but this doesn't work because the b
tag is interfering. How do you solve this?
thanks