3 <script type=
"text/javascript">
7 testRunner
.dumpAsText();
9 var ns
= 'http://www.w3.org/1999/xhtml';
10 var xhtml
= document
.implementation
.createDocument(ns
, 'html', null);
12 var p
= xhtml
.createElementNS(ns
, 'p');
13 p
.textContent
= '(0 < 1 && 1 > 0)';
14 xhtml
.documentElement
.appendChild(p
);
16 var script
= xhtml
.createElementNS(ns
, 'script');
17 script
.textContent
= 'if (0 < 1 && 1 > 0) { };';
18 xhtml
.documentElement
.appendChild(script
);
20 var style
= xhtml
.createElementNS(ns
, 'style');
21 style
.textContent
= '/* < > & */';
22 xhtml
.documentElement
.appendChild(style
);
24 var serializer
= new XMLSerializer();
25 var xmlString
= serializer
.serializeToString(xhtml
);
27 var outputText
= document
.getElementById("output");
28 outputText
.textContent
= xmlString
;
32 <body onload=
"runTest()">