From 880a0f9478ca0f835244329db68c853576a907ef Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Fri, 6 Nov 2015 23:07:57 -0500 Subject: [PATCH] Add ElementContentEditable WebIDL interface --- .../script/dom/webidls/ElementContentEditable.webidl | 10 ++++++++++ components/script/dom/webidls/HTMLElement.webidl | 3 +-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 components/script/dom/webidls/ElementContentEditable.webidl diff --git a/components/script/dom/webidls/ElementContentEditable.webidl b/components/script/dom/webidls/ElementContentEditable.webidl new file mode 100644 index 00000000000..4bacaf20a79 --- /dev/null +++ b/components/script/dom/webidls/ElementContentEditable.webidl @@ -0,0 +1,10 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +// https://html.spec.whatwg.org/multipage/#elementcontenteditable +[NoInterfaceObject] +interface ElementContentEditable { + // attribute DOMString contentEditable; + // readonly attribute boolean isContentEditable; +}; diff --git a/components/script/dom/webidls/HTMLElement.webidl b/components/script/dom/webidls/HTMLElement.webidl index 8581d40c46f..8b2e01ea7c6 100644 --- a/components/script/dom/webidls/HTMLElement.webidl +++ b/components/script/dom/webidls/HTMLElement.webidl @@ -31,8 +31,6 @@ interface HTMLElement : Element { //readonly attribute DOMString accessKeyLabel; // attribute boolean draggable; //[PutForwards=value] readonly attribute DOMSettableTokenList dropzone; - // attribute DOMString contentEditable; - //readonly attribute boolean isContentEditable; // attribute HTMLMenuElement? contextMenu; // attribute boolean spellcheck; //void forceSpellCheck(); @@ -57,4 +55,5 @@ partial interface HTMLElement { }; HTMLElement implements GlobalEventHandlers; +HTMLElement implements ElementContentEditable; HTMLElement implements ElementCSSInlineStyle;