Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / innerHTML / innerHTML-changing-document-properties.xhtml
blob861f92db0f6d0332a8adba6e779c1d7f4b6cf3b5
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">
4 <div id="log"></div>
5 <script><![CDATA[
6 if (window.testRunner)
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");
27 var newXML = ''
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">';
31 newXML += '</html>';
33 try {
34 div.innerHTML = newXML;
35 } catch (e) {
36 debugLog("div.innerHTML = threw exception: " + e);
37 } finally {
38 debugLog("document.xmlEncoding : " + document.xmlEncoding);
39 debugLog("document.xmlVersion : " + document.xmlVersion);
40 debugLog("document.xmlStandalone : " + document.xmlStandalone);
41 debugLog("document.readyState : " + document.readyState);
44 ]]></script>
45 </html>