mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 15:55:36 +00:00
2db41f075d
--HG-- extra : rebase_source : aa90385160666b155cc8dbad63bcfa34d3e50d32 extra : amend_source : 6b9ebda268a6198f5e0143e5449f9d62ef1aed76
21 lines
741 B
HTML
21 lines
741 B
HTML
<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>
|