parser/htmlparser/tests/crashtests/650501-1.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/parser/htmlparser/tests/crashtests/650501-1.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,22 @@
     1.4 +
     1.5 +<html xmlns="http://www.w3.org/1999/xhtml"> 
     1.6 +<head> 
     1.7 +<script> 
     1.8 +<![CDATA[
     1.9 + 
    1.10 +function boom()
    1.11 +{
    1.12 +  var a = document.createElement("div");
    1.13 +  a.innerHTML = "<script>1;<\/script>";
    1.14 + 
    1.15 +  var b = document.createElement("div")
    1.16 +  try { b.innerHTML = "<"; } catch (invalidXML) { }
    1.17 + 
    1.18 +  document.documentElement.appendChild(a);
    1.19 +}
    1.20 + 
    1.21 +]]>
    1.22 +</script> 
    1.23 +</head> 
    1.24 +<body onload="boom();"></body> 
    1.25 +</html>

mercurial