summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/xsl/xslt-transform-to-fragment-crash.html
blob: 82b11446326053608494fab999613299986d68e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<html>
Test passes if it does not crash.
<script>
if (window.testRunner)
    testRunner.dumpAsText();

var style = '\
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> \
      <xsl:variable name="test"></xsl:variable> \
      <xsl:variable name="test"></xsl:variable> \
    </xsl:stylesheet>';
var xslp = new XSLTProcessor();
var foo = new DOMParser().parseFromString(style, "text/xml");
xslp.importStylesheet(foo);
xslp.transformToFragment(foo, document);
xslp.transformToFragment(foo, document);
</script>
</html>