I have setup some code on JSFiddle. The jQuery :contains selector works fine in Firefox, Safari and Chrome but not in Internet Explorer 7, 8 or 9.
The working code is located here.
I made the XML a variable for display purposes, but when the JSFiddle is opened in IE the Result doesn’t show up. I have read a lot where people have the :contains selctor working in IE, and I am not sure what the issue is.
Any assistance would be appreciated.
If there is a better way of displaying the latest article in a RSS feed where the title contains “QA” that would be helpful too.
Thank you.
As alex mentioned in the comments putting
&in xml is not valid. Replacing that with&in both cases in the string works fine in IE8.Oh, and in your html there was an extra
</div>caused by a<div/></div>in the middle somewhere.I also threw in a parseXML since I’m assuming your GET returns the datatype as XML.
Forked jsfiddle that works in IE8.
Here is a XML validator – I just popped that in and it points to the
&(i thought at first there was nesting issues).If you can’t control the source, you might do a quick regex to fix it (not suggested).