OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 Test passes if it does not crash. | 3 Test passes if it does not crash. |
4 <script> | 4 <script> |
5 if (window.layoutTestController) | 5 if (window.layoutTestController) |
6 layoutTestController.dumpAsText(); | 6 layoutTestController.dumpAsText(); |
7 | 7 |
8 var style = '\ | 8 var style = '\ |
9 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.
0"> \ | 9 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.
0"> \ |
10 <xsl:variable name="test"></xsl:variable> \ | 10 <xsl:variable name="test"></xsl:variable> \ |
11 <xsl:variable name="test"></xsl:variable> \ | 11 <xsl:variable name="test"></xsl:variable> \ |
12 </xsl:stylesheet>'; | 12 </xsl:stylesheet>'; |
13 var xslp = new XSLTProcessor(); | 13 var xslp = new XSLTProcessor(); |
14 var foo = new DOMParser().parseFromString(style, "text/xml"); | 14 var foo = new DOMParser().parseFromString(style, "text/xml"); |
15 xslp.importStylesheet(foo); | 15 xslp.importStylesheet(foo); |
16 xslp.transformToFragment(foo, document); | 16 xslp.transformToFragment(foo, document); |
17 xslp.transformToFragment(foo, document); | 17 xslp.transformToFragment(foo, document); |
18 </script> | 18 </script> |
19 </html> | 19 </html> |
OLD | NEW |