mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
23 lines
551 B
HTML
23 lines
551 B
HTML
<html>
|
|
<head>
|
|
<script>
|
|
function replaceBody()
|
|
{
|
|
var accRetrieval = Components.classes["@mozilla.org/accessibleRetrieval;1"].
|
|
getService(Components.interfaces.nsIAccessibleRetrieval);
|
|
accRetrieval.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>
|
|
|