Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
michael@0 | 1 | <html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait"> |
michael@0 | 2 | <head> |
michael@0 | 3 | <style> |
michael@0 | 4 | div { color: green; } |
michael@0 | 5 | </style> |
michael@0 | 6 | </head> |
michael@0 | 7 | <body onload="runTest()"> |
michael@0 | 8 | <div id="test1" style="-moz-binding: url(372323-1xbl.xml#test);"/> |
michael@0 | 9 | <div id="test2" style="-moz-binding: url(372323-1xbl.xml#test);"> |
michael@0 | 10 | <!-- Make the script load, so the binding loads first --> |
michael@0 | 11 | <script src="data:text/javascript,document.body.offsetWidth;"/> |
michael@0 | 12 | <!-- The whitespace here is important... or this comment will do |
michael@0 | 13 | the trick too --> |
michael@0 | 14 | <span>test</span> |
michael@0 | 15 | </div> |
michael@0 | 16 | <script> |
michael@0 | 17 | function runTest() { |
michael@0 | 18 | var n = document.getElementById("test1"); |
michael@0 | 19 | n.appendChild(makeSpan()); |
michael@0 | 20 | |
michael@0 | 21 | document.documentElement.className = ""; |
michael@0 | 22 | } |
michael@0 | 23 | |
michael@0 | 24 | function makeSpan() { |
michael@0 | 25 | var s = document.createElementNS("http://www.w3.org/1999/xhtml", |
michael@0 | 26 | "span"); |
michael@0 | 27 | s.appendChild(document.createTextNode("test")); |
michael@0 | 28 | return s; |
michael@0 | 29 | } |
michael@0 | 30 | </script> |
michael@0 | 31 | </body> |
michael@0 | 32 | </html> |