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:
16
mozilla/content/xml/tests/load/load.html
Normal file
16
mozilla/content/xml/tests/load/load.html
Normal 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>
|
||||
7
mozilla/content/xml/tests/load/test.xml
Normal file
7
mozilla/content/xml/tests/load/test.xml
Normal 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>
|
||||
Reference in New Issue
Block a user