layout/reftests/selection/addrange-ref.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.

     1 <!DOCTYPE html>
     2 <html>
     3     <head>
     4         <title>Testcase #1 for bug 602331</title>
     5         <script type="text/javascript" charset="utf-8">
     6             function selectExisting() {
     7                 window.getSelection().removeAllRanges();
     9                 var range = document.createRange();
    10                 range.selectNode(document.getElementById('existing_node'));
    11                 window.getSelection().addRange(range);
    12             }
    13         </script>
    14     </head>
    15     <body onload="selectExisting()">
    16         * <span id="existing_node">Hello Kitty</span> *
    17     </body>
    18 </html>

mercurial