blob: 854d3507cfaf9605456d62c47d805b920595318e [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../../resources/js-test.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>