Not part of build. Added tests for document.load() (a DOM extension used to load XML documents asynchronloysly as data).

This commit is contained in:
heikki%netscape.com 2001-03-20 00:05:05 +00:00
parent 8df3b775ba
commit ed0d730e7e
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,16 @@
<html>
<body>
<h1>document.load() test</h1>
<script>
var xmlDoc = document.implementation.createDocument("", "test", null);
function documentLoaded(e) {
alert(xmlDoc.getElementById("id1").firstChild.nodeValue);
}
xmlDoc.addEventListener("load", documentLoaded, false);
xmlDoc.load("test.xml");
</script>
</body>
</html>

View File

@ -0,0 +1,7 @@
<?xml version="1.0"?>
<!DOCTYPE doc [
<!ATTLIST p id ID #IMPLIED>
]>
<doc>
<p id="id1">Text from sample XML document.</p>
</doc>