summaryrefslogtreecommitdiff
path: root/editor/reftests/672709-ref.html
blob: b9fc369b09f796f78a8d35f261c0962f0e79ed19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html class="reftest-wait">
  <body>
    <style>
      :-moz-read-only { color: red; }
      :-moz-read-write { color: green; }
    </style>
    <script>
      onload = function() {
        document.designMode = "on";
        var p = document.createElement("p");
        p.textContent = "test";
        document.getElementById("x").appendChild(p);
        getSelection().removeAllRanges(); // don't need a caret
        document.documentElement.removeAttribute("class");
      };
    </script>
    <div contenteditable id="x">
    </div>
    more test
  </body>
</html>