layout/reftests/dom/xbl-children-4.xhtml

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

michael@0 1 <!DOCTYPE html>
michael@0 2 <html xmlns="http://www.w3.org/1999/xhtml"
michael@0 3 xmlns:xbl="http://www.mozilla.org/xbl"
michael@0 4 class="reftest-wait">
michael@0 5 <head>
michael@0 6 <meta charset="UTF-8" />
michael@0 7 <style>
michael@0 8 children { display:block; }
michael@0 9 </style>
michael@0 10 </head>
michael@0 11 <body>
michael@0 12 <xbl:children />
michael@0 13 <script>
michael@0 14 onload = function() {
michael@0 15 /* First, schedule a pending restyle of the whole tree. */
michael@0 16 var newSheet = document.createElementNS("http://www.w3.org/1999/xhtml", "style");
michael@0 17 newSheet.appendChild(document.createTextNode("#nosuchelement { }"));
michael@0 18 document.head.appendChild(newSheet);
michael@0 19
michael@0 20 /* Now, append a frame to our children element, causing the pending restyle to descend into it. */
michael@0 21 var children = document.getElementsByTagName("xbl:children")[0];
michael@0 22 var span = document.createElementNS("http://www.w3.org/1999/xhtml", "span");
michael@0 23 span.appendChild(document.createTextNode("PASS"));
michael@0 24 children.appendChild(span);
michael@0 25 document.documentElement.removeAttribute("class");
michael@0 26 }
michael@0 27 </script>
michael@0 28 </body>
michael@0 29 </html>

mercurial