layout/reftests/bugs/495385-4.html

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>
michael@0 3 <head>
michael@0 4 <!-- Test that inserting inline content can create frames for text around it
michael@0 5 when there are <br>s -->
michael@0 6 <style>
michael@0 7 body > div { border:1px solid black; margin:1em; }
michael@0 8 </style>
michael@0 9 <script>
michael@0 10 function makeSpan(text) {
michael@0 11 var e = document.createElement("span");
michael@0 12 e.textContent = text;
michael@0 13 return e;
michael@0 14 }
michael@0 15 function loaded() {
michael@0 16 var d3 = document.getElementById("d3");
michael@0 17 d3.insertBefore(makeSpan("Hello"), d3.firstChild.nextSibling);
michael@0 18 var d4 = document.getElementById("d4");
michael@0 19 d4.insertBefore(makeSpan("Kitty"), d4.lastChild);
michael@0 20 }
michael@0 21 </script>
michael@0 22 </head>
michael@0 23 <body onload="loaded()">
michael@0 24 <div id="d3"><br> <span>Kitty</span></div>
michael@0 25 <div id="d4"><span>Hello</span> <br></div>
michael@0 26 </body>
michael@0 27 </html>

mercurial