blob: f357dca3ee1ff67c0ca5d502850033945282d0c4 [file] [log] [blame]
* Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
* for details. All rights reserved. Use of this source code is governed by a
* BSD-style license that can be found in the LICENSE file.
* @description When contentEditable is set to "inherit", the attribute must
* be removed and element.contentEditable should return "inherit".
import "dart:html";
import "../../../../Utils/expect.dart";
import "../../../testcommon.dart";
main() {
<p id="description"></p>
<div id="console"></div>
<div id="result"></div>
<div id="div" contenteditable="false">
<p id="p" contenteditable="true"></p>
''', treeSanitizer: new NullTreeSanitizer());
document.getElementById("p").contentEditable = "inherit";
shouldBe(document.getElementById("p").contentEditable, "inherit");
shouldBe(document.getElementById("p").isContentEditable, false);
debug("FIXME: setContentEditable with true/false/inherit string is not working properly.");
var p = document.getElementById('p');
document.getElementById("div").style.display= 'none';