1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/content/base/crashtests/838489-2.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,16 @@ 1.4 +<foo id=test1>>><body id=test2 '><bdi id=test3><keygen> 1.5 +<test><script> 1.6 +var docElement = document.body ? document.body : document.documentElement; 1.7 +function initCF() { 1.8 +try { test4 = document.createElementNS("http://www.w3.org/1999/xhtml", "td"); } catch(e) {} 1.9 +try { docElement.appendChild(test4); } catch(e) {} 1.10 +try { test5 = test3.cloneNode(true); } catch(e) {} 1.11 +try { test5.setAttribute("dir", "invalid"); } catch(e) {} 1.12 +try { docElement.appendChild(test5); } catch(e) {} 1.13 +setTimeout("CFcrash()", 0); 1.14 +} 1.15 +document.addEventListener("DOMContentLoaded", initCF, false); 1.16 +function CFcrash() { 1.17 +try { test1.appendChild(test4); } catch(e) {} 1.18 +try { document.adoptNode(test2); } catch(e) {} 1.19 +}</script>> 1.20 \ No newline at end of file