summaryrefslogtreecommitdiffstats
path: root/accessible/tests/mochitest/states/z_frames_update.html
blob: 7e2cc835393be48f6bfbb80e1bfefc40ddf03de2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<html>
<head>
<script>
function replaceBody() {
  var accService = Cc["@mozilla.org/accessibilityService;1"].
    getService(Ci.nsIAccessibilityService);
  accService.getAccessibleFor(document);

  var newBody = document.createElement("body");
  newBody.setAttribute("contentEditable", "true");
  newBody.textContent = "New Hello";
  document.documentElement.replaceChild(newBody, document.body);
  getComputedStyle(newBody, "").color;
}
</script>
</head>
<body onload="replaceBody();">
OLD hello
</body>
</html>