|
1 <!DOCTYPE HTML> |
|
2 <html> |
|
3 <!-- |
|
4 https://bugzilla.mozilla.org/show_bug.cgi?id=468208 |
|
5 --> |
|
6 <head> |
|
7 <title>Test for Bug 468208</title> |
|
8 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
|
9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> |
|
10 </head> |
|
11 <body> |
|
12 |
|
13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=468208">Mozilla Bug 468208</a> |
|
14 <p id="display"></p> |
|
15 <div id="content" style="display: none"> |
|
16 |
|
17 </div> |
|
18 <pre id="test"> |
|
19 <script class="testbody" type="text/javascript"> |
|
20 |
|
21 /** Test for Bug 468208 **/ |
|
22 var xslt = |
|
23 '<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">\n\ |
|
24 <xsl:strip-space elements="color"/>\n\ |
|
25 </xsl:stylesheet>' |
|
26 ; |
|
27 var xsltdoc = new DOMParser().parseFromString(xslt, "text/xml"); |
|
28 |
|
29 var processor = new XSLTProcessor; |
|
30 processor.importStylesheet(xsltdoc); |
|
31 ok(true, "XSLT shouldn't leak"); |
|
32 </script> |
|
33 </pre> |
|
34 </body> |
|
35 </html> |