summaryrefslogtreecommitdiffstats
path: root/dom/base/crashtests/1396466.html
blob: 09f36fa0d47d95c758c5bac1f9725f021a66fe62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<script>
function addNew(i,t){
  let n=document.createElement(t);
  n.setAttribute('id', i);
  document.getElementById('a').appendChild(n);
}
document.addEventListener("DOMContentLoaded", function(){
  addNew('b','multicol');
  addNew('c','marquee');
  addNew('d','spacer');
  document.getElementById('a').appendChild(document.createElement('iframe'));
  document.getElementById('b').focus();
  window.frames[0].document.body.appendChild(document.getElementById('c'));
  let o=window.frames[0].document.body.childNodes[0];
  document.getElementById('d').appendChild(o.parentNode.removeChild(o));
  try{window.find('x')}catch(e){}
  window.frames[0].document.body.appendChild(document.getElementById('c'));
});
</script>
<body id='a'></body>