mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
22 lines
439 B
HTML
22 lines
439 B
HTML
|
<html>
|
||
|
<head>
|
||
|
<title>Testcase for bug 448329</title>
|
||
|
<script>
|
||
|
function go() {
|
||
|
test("myFrame", "backcolor");
|
||
|
}
|
||
|
function test(id,cmd) {
|
||
|
var doc = document.getElementById(id).contentDocument;
|
||
|
doc.designMode = "On";
|
||
|
|
||
|
var s = doc.defaultView.getSelection();
|
||
|
s.removeAllRanges();
|
||
|
s.addRange(doc.createRange());
|
||
|
|
||
|
doc.queryCommandIndeterm(cmd);
|
||
|
}
|
||
|
</script>
|
||
|
</head>
|
||
|
<body onload="go()"><iframe id="myFrame"></iframe></body>
|
||
|
</html>
|