Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | <html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait"> |
michael@0 | 2 | |
michael@0 | 3 | <head> |
michael@0 | 4 | |
michael@0 | 5 | <script> |
michael@0 | 6 | |
michael@0 | 7 | function init() |
michael@0 | 8 | { |
michael@0 | 9 | var foopy = document.getElementById("foopy"); |
michael@0 | 10 | var emb = document.getElementById("emb"); |
michael@0 | 11 | |
michael@0 | 12 | try { |
michael@0 | 13 | foopy.appendChild(SpecialPowers.unwrap(SpecialPowers.wrap(document).getAnonymousNodes(emb))[0]); |
michael@0 | 14 | emb.parentNode.removeChild(emb); |
michael@0 | 15 | foopy.parentNode.removeChild(foopy); |
michael@0 | 16 | } catch (e) { |
michael@0 | 17 | } |
michael@0 | 18 | |
michael@0 | 19 | document.documentElement.removeAttribute("class"); |
michael@0 | 20 | } |
michael@0 | 21 | |
michael@0 | 22 | |
michael@0 | 23 | window.addEventListener("load", function() { setTimeout(init, 30); }, false); |
michael@0 | 24 | |
michael@0 | 25 | </script> |
michael@0 | 26 | |
michael@0 | 27 | </head> |
michael@0 | 28 | <body> |
michael@0 | 29 | |
michael@0 | 30 | <div id="foopy"/> |
michael@0 | 31 | |
michael@0 | 32 | <embed src="data:foo/bar,baz" id="emb" /> |
michael@0 | 33 | |
michael@0 | 34 | </body> |
michael@0 | 35 | </html> |