summaryrefslogtreecommitdiff
path: root/dom/base/crashtests/330925-1.xhtml
blob: 7dac8374c250c5724e40285377579cb1209abe31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">

<head>

<script>

function init()
{
  var foopy = document.getElementById("foopy");
  var emb = document.getElementById("emb");

  try {  
    foopy.appendChild(SpecialPowers.unwrap(SpecialPowers.wrap(document).getAnonymousNodes(emb))[0]);
    emb.parentNode.removeChild(emb);
    foopy.parentNode.removeChild(foopy);
  } catch (e) {
  }
  
  document.documentElement.removeAttribute("class");
}


window.addEventListener("load", function() { setTimeout(init, 30); }, false);

</script>

</head>
<body> 

<div id="foopy"/>

<embed src="data:foo/bar,baz" id="emb" />

</body>
</html>