1 <?xml version=
"1.0" encoding=
"UTF-8" standalone=
"yes"?>
2 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns=
"http://www.w3.org/1999/xhtml">
7 testRunner.dumpAsText();
9 var xhtmlNS =
"http://www.w3.org/1999/xhtml";
11 var logDiv = document.getElementById(
"log");
13 function debugLog(s) {
14 var logDiv = document.getElementById(
"log");
15 logDiv.appendChild(document.createTextNode(s));
16 logDiv.appendChild(document.createElementNS(
"http://www.w3.org/1999/xhtml",
"br"));
19 debugLog(
"document.xmlEncoding : " + document.xmlEncoding);
20 debugLog(
"document.xmlVersion : " + document.xmlVersion);
21 debugLog(
"document.xmlStandalone : " + document.xmlStandalone);
22 debugLog(
"document.readyState : " + document.readyState);
25 var div = document.createElementNS(xhtmlNS,
"div");
28 newXML += '
<?xml version=
"1.0" encoding=
"iso-8859-1"?>';
29 newXML += '
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'
30 newXML += '
<html xmlns=
"http://www.w3.org/1999/xhtml">';
34 div.innerHTML = newXML;
36 debugLog(
"div.innerHTML = threw exception: " + e);
38 debugLog(
"document.xmlEncoding : " + document.xmlEncoding);
39 debugLog(
"document.xmlVersion : " + document.xmlVersion);
40 debugLog(
"document.xmlStandalone : " + document.xmlStandalone);
41 debugLog(
"document.readyState : " + document.readyState);