Mozilla/mozilla/dom/tests/mochitest/bugs/iframe_bug430276.html
Olli.Pettay%helsinki.fi 96e657b052 Bug 430276, new XMLHttpRequest() after document.write throws an exception, patch2, r+sr=jst, a=beltzner
git-svn-id: svn://10.0.0.236/trunk@250946 18797224-902f-48f8-a5cc-f745e15eee43
2008-04-29 19:22:24 +00:00

22 lines
418 B
HTML

<!DOCTYPE html>
<html>
<head>
<title></title>
<script type="application/javascript">
function runTest() {
document.write("<body>");
var succeeded = true;
try {
new XMLHttpRequest();
} catch(e) {
succeeded = false;
}
window.parent.ok(succeeded, "Creating XMLHttpRequest failed!");
window.parent.nextTest();
}
</script>
</head>
<body onload="runTest()">
</body>
</html>