mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 16:46:26 +00:00
32 lines
763 B
HTML
32 lines
763 B
HTML
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
|
|
<head>
|
|
<script>
|
|
<![CDATA[
|
|
|
|
function x()
|
|
{
|
|
var p = document.createElementNS("http://www.w3.org/1999/xhtml", "iframe");
|
|
var frame = document.createElementNS("http://www.w3.org/1999/xhtml", "iframe");
|
|
frame.onload = y;
|
|
frame.src = "data:text/html,1";
|
|
document.body.appendChild(frame);
|
|
var frameRoot = frame.contentDocument.documentElement;
|
|
|
|
function y()
|
|
{
|
|
var frameDoc = frameRoot.ownerDocument;
|
|
frameRoot.appendChild(p);
|
|
var attr = frameDoc.createAttributeNS("http://www.w3.org/1999/xhtml", "u");
|
|
attr.w = {};
|
|
p.setAttributeNode(attr);
|
|
document.documentElement.removeAttribute("class");
|
|
}
|
|
}
|
|
|
|
]]>
|
|
</script>
|
|
</head>
|
|
|
|
<body onload="setTimeout(x, 0);"></body>
|
|
</html>
|