layout/reftests/bugs/503531-1.html

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

michael@0 1 <html class="reftest-wait"><head>
michael@0 2 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
michael@0 3 <title>Testcase #1 for bug 503531</title>
michael@0 4 <script>
michael@0 5 function boom() {
michael@0 6 var emptyText = document.createTextNode('x');
michael@0 7 document.body.appendChild(emptyText);
michael@0 8
michael@0 9 var sel = window.getSelection();
michael@0 10 sel.removeAllRanges();
michael@0 11 var range = document.createRange();
michael@0 12 range.selectNode(emptyText);
michael@0 13 sel.addRange(range);
michael@0 14 sel.collapseToStart();
michael@0 15
michael@0 16 emptyText.nodeValue='';
michael@0 17
michael@0 18 setTimeout(function(){document.documentElement.className = '';}, 50)
michael@0 19 }
michael@0 20 </script>
michael@0 21 </head>
michael@0 22 <body contenteditable="true" onload="document.body.focus(); boom()">
michael@0 23 <div>BLOCK</div>
michael@0 24 </body>
michael@0 25 </html>

mercurial