Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
michael@0 | 1 | <!DOCTYPE html> |
michael@0 | 2 | <html class="reftest-wait"> |
michael@0 | 3 | <head> |
michael@0 | 4 | <script type="text/javascript"> |
michael@0 | 5 | function doTest() { |
michael@0 | 6 | var c = document.createElement("span"); |
michael@0 | 7 | c.style.display = "table-cell"; |
michael@0 | 8 | c.appendChild(document.createTextNode("bc")); |
michael@0 | 9 | var t = document.getElementById("t"); |
michael@0 | 10 | t.parentNode.insertBefore(c, t); |
michael@0 | 11 | document.documentElement.className = ""; |
michael@0 | 12 | } |
michael@0 | 13 | </script> |
michael@0 | 14 | </head> |
michael@0 | 15 | <body onload="doTest()"> |
michael@0 | 16 | <span style="display: block"> |
michael@0 | 17 | <span style="display: table-cell">a</span> |
michael@0 | 18 | <span style="display: table-cell; white-space: pre"> </span> |
michael@0 | 19 | <span style="display: table-cell; white-space: pre" id="t"> </span> |
michael@0 | 20 | <span style="display: table-cell">d</span> |
michael@0 | 21 | </body> |
michael@0 | 22 | </html> |