Skip to main content

Bug Tracker

Side navigation

Ticket #6916: test.html

File test.html, 1.0 KB (added by karger, August 18, 2010 09:52PM UTC)

html file that exhibits the error when loading accompanying xml

<script src=""></script>


The script below demonstrates an xml parse error that occurs in IE but
not FF.  Assuming the xml is parsed correctly, you should see an alert
with the title of the one book in the xml document.  If the parse
fails, you will get a parseerror alert.  This file and accompanying
xml work fine in firefox, whather the files are remote (served by
http) or local.  They also work fine in IE if the files are remote.
However, if the files are stored locally, IE will generate a

function testXML(xml) {
$("Title",xml).each(function() {

function reportError(xmlhttp, status, error) {
alert("error: " + status);

function test(url) {
var xmlhttp=$.ajax(
url: url,
data: "",
success: testXML,
error: reportError,
dataType: "xml"}




Download in other formats:

Original Format