4 <script src="../../js/resources/js-test-pre.js"></script>
7 <p id="description"></p>
8 <div id="console"></div>
9 <div id="result"></div>
10 <div id="div" contenteditable="false">
11 <p id="p" contenteditable="true"></p>
14 description('When contentEditable is set to "inherit", the attribute must be removed and element.contentEditable should return "inherit".')
16 document.getElementById("p").contentEditable = "inherit";
18 shouldBe('document.getElementById("p").hasAttribute("contentEditable")','false');
19 shouldBe('document.getElementById("p").contentEditable', '"inherit"');
20 shouldBe('document.getElementById("p").isContentEditable', 'false');
21 debug("FIXME: setContentEditable with true/false/inherit string is not working properly. https://bugs.webkit.org/show_bug.cgi?id=52058");
22 shouldBe('window.getComputedStyle(p, "").getPropertyValue("-webkit-user-modify")', '"read-only"');
24 document.getElementById("div").style.display= 'none';
26 <script src="../../js/resources/js-test-post.js"></script>