mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 12:37:37 +00:00
23 lines
459 B
HTML
23 lines
459 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head><meta charset=utf-8>
|
|
<title></title>
|
|
<script type="application/javascript">
|
|
function runTest() {
|
|
document.write("<body>");
|
|
var succeeded = true;
|
|
try {
|
|
new DOMParser();
|
|
} catch(e) {
|
|
succeeded = false;
|
|
}
|
|
window.parent.ok(succeeded, "Creating DOMParser failed!");
|
|
window.parent.SimpleTest.finish();
|
|
document.close();
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onload="runTest()">
|
|
</body>
|
|
</html>
|