Difference in jQuery with XML namespace and xhr.responseXML between Opera and Firefox
问题 Consider this: <!DOCTYPE HTML> <html><head><title>XML-problem</title> <script src="jquery-1.3.2.min.js" type="text/javascript"></script> <script type="text/javascript"> $(function() { $('<p/>').load("text.xml", function(responseText, textStatus, xhr) { var xml = $(xhr.responseXML); var x_txt = xml.find('atom\\:x').text(); $(this).text(x_txt).appendTo('#container'); }); }); </script> </head><body><div id="container" /></body></html> This script should load text.xml when the document has been