editor/reftests/672709-ref.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/editor/reftests/672709-ref.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,22 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html class="reftest-wait">
     1.6 +  <body>
     1.7 +    <style>
     1.8 +      :-moz-read-only { color: red; }
     1.9 +      :-moz-read-write { color: green; }
    1.10 +    </style>
    1.11 +    <script>
    1.12 +      onload = function() {
    1.13 +        document.designMode = "on";
    1.14 +        var p = document.createElement("p");
    1.15 +        p.textContent = "test";
    1.16 +        document.getElementById("x").appendChild(p);
    1.17 +        getSelection().removeAllRanges(); // don't need a caret
    1.18 +        document.documentElement.removeAttribute("class");
    1.19 +      };
    1.20 +    </script>
    1.21 +    <div contenteditable id="x">
    1.22 +    </div>
    1.23 +    more test
    1.24 +  </body>
    1.25 +</html>

mercurial