1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/xslt/crashtests/545927.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,28 @@ 1.4 +<html> 1.5 +<head> 1.6 +<script> 1.7 +function main() 1.8 +{ 1.9 + xml=document.implementation.createDocument('', '', null); 1.10 + xml.appendChild(doc=xml.createElement('root')); 1.11 + 1.12 + var p = new DOMParser(); 1.13 + text = '<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">'; 1.14 + text += '<xsl:template match="/">'; 1.15 + text += '<body>'; 1.16 + text += '<xsl:number value="2147483648" format="i"/>'; 1.17 + text += '</body>'; 1.18 + text += '</xsl:template>'; 1.19 + text += '</xsl:stylesheet>'; 1.20 + xsl=p.parseFromString(text, 'text/xml'); 1.21 + 1.22 + xsltProcessor=new XSLTProcessor(); 1.23 + xsltProcessor.importStylesheet(xsl); 1.24 + d = xsltProcessor.transformToFragment(xml, document); 1.25 +} 1.26 +</script> 1.27 +</head> 1.28 +<body onload="main()"> 1.29 +</body> 1.30 +</html> 1.31 +