mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
f6dfb5e310
--HG-- rename : dom/xml/crashtests/420429.xul => content/xml/content/crashtest/420429.xul rename : dom/xml/crashtests/453278-frame.xml => content/xml/content/crashtest/453278-frame.xml rename : dom/xml/crashtests/453278.html => content/xml/content/crashtest/453278.html rename : dom/xml/crashtests/803586.xhtml => content/xml/content/crashtest/803586.xhtml rename : dom/xml/CDATASection.cpp => content/xml/content/src/CDATASection.cpp rename : dom/xml/CDATASection.h => content/xml/content/src/CDATASection.h rename : dom/xml/ProcessingInstruction.cpp => content/xml/content/src/ProcessingInstruction.cpp rename : dom/xml/ProcessingInstruction.h => content/xml/content/src/ProcessingInstruction.h rename : dom/xml/XMLStylesheetProcessingInstruction.cpp => content/xml/content/src/XMLStylesheetProcessingInstruction.cpp rename : dom/xml/XMLStylesheetProcessingInstruction.h => content/xml/content/src/XMLStylesheetProcessingInstruction.h rename : dom/xml/htmlmathml-f.ent => content/xml/content/src/htmlmathml-f.ent rename : dom/xml/moz.build => content/xml/content/src/moz.build rename : dom/xml/nsXMLElement.cpp => content/xml/content/src/nsXMLElement.cpp rename : dom/xml/nsXMLElement.h => content/xml/content/src/nsXMLElement.h rename : dom/xml/crashtests/136896-1.xml => content/xml/document/crashtests/136896-1.xml rename : dom/xml/crashtests/185285-1.xml => content/xml/document/crashtests/185285-1.xml rename : dom/xml/crashtests/382636-1.xml => content/xml/document/crashtests/382636-1.xml rename : dom/xml/crashtests/382636-2.svg => content/xml/document/crashtests/382636-2.svg rename : dom/xml/crashtests/382636-3.xhtml => content/xml/document/crashtests/382636-3.xhtml rename : dom/xml/crashtests/382636-4.xul => content/xml/document/crashtests/382636-4.xul rename : dom/xml/crashtests/431703-1.xhtml => content/xml/document/crashtests/431703-1.xhtml rename : dom/xml/crashtests/crashtests.list => content/xml/document/crashtests/crashtests.list rename : dom/xml/crashtests/tree.gif => content/xml/document/crashtests/tree.gif rename : dom/xml/nsIXMLContentSink.h => content/xml/document/public/nsIXMLContentSink.h rename : dom/xml/resources/XMLMonoPrint.css => content/xml/document/resources/XMLMonoPrint.css rename : dom/xml/resources/XMLPrettyPrint.css => content/xml/document/resources/XMLPrettyPrint.css rename : dom/xml/resources/XMLPrettyPrint.xml => content/xml/document/resources/XMLPrettyPrint.xml rename : dom/xml/resources/XMLPrettyPrint.xsl => content/xml/document/resources/XMLPrettyPrint.xsl rename : dom/xml/resources/jar.mn => content/xml/document/resources/jar.mn rename : dom/xml/resources/moz.build => content/xml/document/resources/moz.build rename : dom/xml/XMLDocument.cpp => content/xml/document/src/XMLDocument.cpp rename : dom/xml/XMLDocument.h => content/xml/document/src/XMLDocument.h rename : dom/xml/nsXMLContentSink.cpp => content/xml/document/src/nsXMLContentSink.cpp rename : dom/xml/nsXMLContentSink.h => content/xml/document/src/nsXMLContentSink.h rename : dom/xml/nsXMLFragmentContentSink.cpp => content/xml/document/src/nsXMLFragmentContentSink.cpp rename : dom/xml/nsXMLPrettyPrinter.cpp => content/xml/document/src/nsXMLPrettyPrinter.cpp rename : dom/xml/nsXMLPrettyPrinter.h => content/xml/document/src/nsXMLPrettyPrinter.h rename : dom/xml/tests/mochitest/file_bug293347.xml => content/xml/document/test/file_bug293347.xml rename : dom/xml/tests/mochitest/file_bug293347xslt.xml => content/xml/document/test/file_bug293347xslt.xml rename : dom/xml/tests/mochitest/mochitest.ini => content/xml/document/test/mochitest.ini rename : dom/xml/tests/mochitest/moz.build => content/xml/document/test/moz.build rename : dom/xml/tests/mochitest/test_bug232004.xhtml => content/xml/document/test/test_bug232004.xhtml rename : dom/xml/tests/mochitest/test_bug293347.html => content/xml/document/test/test_bug293347.html rename : dom/xml/tests/mochitest/test_bug343870.xhtml => content/xml/document/test/test_bug343870.xhtml rename : dom/xml/tests/mochitest/test_bug355213.xhtml => content/xml/document/test/test_bug355213.xhtml rename : dom/xml/tests/mochitest/test_bug392338.html => content/xml/document/test/test_bug392338.html rename : dom/xml/tests/mochitest/test_bug399502.xhtml => content/xml/document/test/test_bug399502.xhtml rename : dom/xml/tests/mochitest/test_bug445330.html => content/xml/document/test/test_bug445330.html rename : dom/xml/tests/mochitest/test_bug691215.html => content/xml/document/test/test_bug691215.html rename : dom/xml/tests/mochitest/test_viewport.xhtml => content/xml/document/test/test_viewport.xhtml rename : dom/xml/tests/books/bethlehem.gif => content/xml/tests/books/bethlehem.gif rename : dom/xml/tests/books/bill.gif => content/xml/tests/books/bill.gif rename : dom/xml/tests/books/books.js => content/xml/tests/books/books.js rename : dom/xml/tests/books/books.xml => content/xml/tests/books/books.xml rename : dom/xml/tests/books/charing.gif => content/xml/tests/books/charing.gif rename : dom/xml/tests/books/classic.css => content/xml/tests/books/classic.css rename : dom/xml/tests/books/common.css => content/xml/tests/books/common.css rename : dom/xml/tests/books/kerouac.gif => content/xml/tests/books/kerouac.gif rename : dom/xml/tests/books/list.css => content/xml/tests/books/list.css rename : dom/xml/tests/books/road.gif => content/xml/tests/books/road.gif rename : dom/xml/tests/books/welville.gif => content/xml/tests/books/welville.gif rename : dom/xml/tests/docbook.css => content/xml/tests/docbook.css rename : dom/xml/tests/docbooktest.xml => content/xml/tests/docbooktest.xml rename : dom/xml/tests/flamer.gif => content/xml/tests/flamer.gif rename : dom/xml/tests/load/display.css => content/xml/tests/load/display.css rename : dom/xml/tests/load/display.xml => content/xml/tests/load/display.xml rename : dom/xml/tests/load/load.html => content/xml/tests/load/load.html rename : dom/xml/tests/load/loadauth.html => content/xml/tests/load/loadauth.html rename : dom/xml/tests/load/loaddisplay.html => content/xml/tests/load/loaddisplay.html rename : dom/xml/tests/load/test.xml => content/xml/tests/load/test.xml rename : dom/xml/tests/script.xml => content/xml/tests/script.xml rename : dom/xml/tests/simple.xml => content/xml/tests/simple.xml rename : dom/xml/tests/toc/book.css => content/xml/tests/toc/book.css rename : dom/xml/tests/toc/irslogo.gif => content/xml/tests/toc/irslogo.gif rename : dom/xml/tests/toc/minus.gif => content/xml/tests/toc/minus.gif rename : dom/xml/tests/toc/plus.gif => content/xml/tests/toc/plus.gif rename : dom/xml/tests/toc/rights.xml => content/xml/tests/toc/rights.xml rename : dom/xml/tests/toc/toc.css => content/xml/tests/toc/toc.css rename : dom/xml/tests/toc/toc.js => content/xml/tests/toc/toc.js rename : dom/xml/tests/xlink/auto.xml => content/xml/tests/xlink/auto.xml rename : dom/xml/tests/xlink/link.css => content/xml/tests/xlink/link.css rename : dom/xml/tests/xlink/manual.xml => content/xml/tests/xlink/manual.xml rename : dom/xml/tests/xmlbase/xmlbase.css => content/xml/tests/xmlbase/xmlbase.css rename : dom/xml/tests/xmlbase/xmlbase.xml => content/xml/tests/xmlbase/xmlbase.xml
58 lines
1.3 KiB
HTML
58 lines
1.3 KiB
HTML
<html>
|
|
<head>
|
|
<title>Synchronized document.load() test</title>
|
|
<style type="text/css">
|
|
.box {
|
|
display: box;
|
|
border: 1px solid black;
|
|
margin-bottom: 0.5em;
|
|
}
|
|
.boxheader {
|
|
font-weight: bold;
|
|
color: maroon;
|
|
}
|
|
pre {
|
|
margin-left: 2em;
|
|
}
|
|
</style>
|
|
<script type="text/javascript">
|
|
var xmlDoc = document.implementation.createDocument("", "test", null);
|
|
|
|
function documentLoaded(e) {
|
|
var s = new XMLSerializer();
|
|
var str = s.serializeToString(xmlDoc);
|
|
document.getElementById("id1").firstChild.nodeValue = str;
|
|
var eventProperties = "";
|
|
for (prop in e) {
|
|
eventProperties += prop + " : '" + e[prop] + "'\n";
|
|
}
|
|
document.getElementById("id2").firstChild.nodeValue =
|
|
"Event object: " + e + "\n" +
|
|
"Event properties:\n" +
|
|
eventProperties;
|
|
}
|
|
|
|
xmlDoc.addEventListener("load", documentLoaded, false);
|
|
|
|
function execute()
|
|
{
|
|
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
|
xmlDoc.load("http://green/heikki/login/data.xml");
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
<body onload="execute();">
|
|
<h1>Synchronized document.load() test</h1>
|
|
|
|
<div class="box"><span class="boxheader">XML document serialized</span>
|
|
<pre id="id1">@@No result@@</pre>
|
|
</div>
|
|
<div class="box"><span class="boxheader">Event information</span>
|
|
<pre id="id2">@@No result@@</pre>
|
|
</div>
|
|
|
|
</body>
|
|
</body>
|
|
</html>
|