1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/src/jsurl/crashtests/344996-1.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,41 @@ 1.4 +<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait"> 1.5 +<head> 1.6 + 1.7 +<script> 1.8 +<![CDATA[ 1.9 + 1.10 +var a; 1.11 +var b; 1.12 + 1.13 +function foopy() 1.14 +{ 1.15 + a = document.getElementById("a"); 1.16 + b = document.getElementById("b"); 1.17 + 1.18 + var img = document.getElementById("img"); 1.19 + var rx = document.getElementById("rx"); 1.20 + 1.21 + img.setAttribute('src', "javascript:aC(a, b);"); 1.22 + aC(rx, a); 1.23 + 1.24 + document.documentElement.removeAttribute("class"); 1.25 +} 1.26 + 1.27 +// This has to be a top-level function to avoid hitting bug 344890. 1.28 +function aC(q1, q2) { q1.appendChild(q2); } 1.29 + 1.30 +]]> 1.31 +</script> 1.32 + 1.33 +</head> 1.34 + 1.35 +<body onload="setTimeout(foopy, 30);"> 1.36 + 1.37 +<span id="a" style="border: 1px solid green;">A<img src="../../../../testing/crashtest/images/tree.gif" id="img" /></span> 1.38 + 1.39 +<span id="b">B</span> 1.40 + 1.41 +<div data="text/plain,Hi!" style="border: 1px solid blue; display: block;" id="rx" /> 1.42 + 1.43 +</body> 1.44 +</html>