blob: 82b11446326053608494fab999613299986d68e9 [file] [log] [blame]
<!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>