blob: b22938971d1dea6d606b593eb7335b27473bc3a7 (
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>
<head>
<script src="../../js/resources/js-test-pre.js"></script>
</head>
<body>
<p id="description"></p>
<div id="console"></div>
<div id="result"></div>
<div id="div" contentEditable="false"></div>
<script>
description('When contentEditable attribute is "false" string, element.contentEditable returns "false" and the element is NOT editable.')
shouldBe('document.getElementById("div").getAttribute("contentEditable")','"false"');
shouldBe('document.getElementById("div").contentEditable', '"false"');
shouldBe('document.getElementById("div").isContentEditable', 'false');
shouldBe('window.getComputedStyle(div, "").getPropertyValue("-webkit-user-modify")', '"read-only"');
document.getElementById("div").style.display= 'none';
</script>
</body>
</html>
|