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

git-svn-id: svn://10.0.0.236/trunk@89852 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
heikki%netscape.com
2001-03-20 00:05:05 +00:00
parent 1dbe26fbf9
commit fd1ba312a3
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>