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
Родитель 8df3b775ba
Коммит ed0d730e7e
2 изменённых файлов: 23 добавлений и 0 удалений

Просмотреть файл

@ -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>

Просмотреть файл

@ -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>