summaryrefslogtreecommitdiffstats
path: root/accessible/tests/mochitest/states/z_frames_update.html
blob: 90d756afed7a25d65172791c5cfc80fe6516b2be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<html>
<head>
<script>
function replaceBody()
{
  var accService = Components.classes["@mozilla.org/accessibilityService;1"].
    getService(Components.interfaces.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>