4 https://bugzilla.mozilla.org/show_bug.cgi?id=667315
7 <title>Test for Bug
667315</title>
8 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
12 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=667315">Mozilla Bug
667315</a>
14 <div id=
"content" style=
"display: none">
18 <script type=
"application/javascript">
20 /** Test for Bug
667315 **/
23 '
<xsl:stylesheet xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform" ' +
25 '
<xsl:variable name=
"var">' +
26 '
<html><p>a
</p></html>' +
28 '
<xsl:template match=
"/">' +
29 '
<xsl:copy-of select=
"$var" />' +
32 var styleDoc = new DOMParser().parseFromString (style,
"text/xml");
35 var originalDoc = new DOMParser().parseFromString(data,
"text/xml");
37 var processor = new XSLTProcessor();
38 processor.importStylesheet(styleDoc);
40 var doc = processor.transformToDocument(originalDoc);
41 ok(doc instanceof HTMLDocument,
"should have switched to html output method");