Bug 482592. Use the right container in ContentInserted. r+sr=roc
[mozilla-central.git] / layout / reftests / bugs / 482592-1b.xhtml
blob8e0b60f319df341fdd456ef9c39e4dc6308b06bd
1 <!DOCTYPE html>
2 <html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
3 <head>
4 <bindings xmlns="http://www.mozilla.org/xbl">
5 <binding id="a">
6 <content>
7 <html:span xmlns:html="http://www.w3.org/1999/xhtml"
8 id="hasBefore"><children/></html:span>
9 </content>
10 </binding>
11 </bindings>
12 <style>
13 #hasBefore::before { content: "x"; }
14 </style>
15 <script>
16 function doTest() {
17 var l = document.getElementById("l");
18 l.parentNode.insertBefore(document.createTextNode("y"), l);
19 document.documentElement.removeAttribute("class");
21 </script>
22 </head>
23 <body onload="doTest()">
24 <div style="-moz-binding: url(#a)"><span id="l"></span></div>
25 </body>
26 </html>