Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(437)

Unified Diff: Source/core/html/HTMLElement.idl

Issue 983213002: Sync the HTMLElement interface with the spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: dataset is on Element Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLElement.idl
diff --git a/Source/core/html/HTMLElement.idl b/Source/core/html/HTMLElement.idl
index 85598835381da3affc0d2cc9ed53b4e64e96a3a2..26177d7cb2b91d5cd5edb7f1896e0f9d59d1641d 100644
--- a/Source/core/html/HTMLElement.idl
+++ b/Source/core/html/HTMLElement.idl
@@ -18,32 +18,39 @@
* Boston, MA 02110-1301, USA.
*/
+// https://html.spec.whatwg.org/#htmlelement
+
interface HTMLElement : Element {
+ // metadata attributes
[Reflect] attribute DOMString title;
[Reflect] attribute DOMString lang;
attribute boolean translate;
attribute DOMString dir;
+ // FIXME: dataset is on Element.
- [CustomElementCallbacks] attribute long tabIndex;
- [CustomElementCallbacks] attribute boolean draggable;
- [Reflect, TreatNullAs=NullString, MeasureAs=PrefixedHTMLElementDropzone] attribute DOMString webkitdropzone;
+ // user interaction
[Reflect] attribute boolean hidden;
+ void click();
+ [CustomElementCallbacks] attribute long tabIndex;
+ // FIXME: focus() and blur() are on Element.
[Reflect] attribute DOMString accessKey;
+ [CustomElementCallbacks] attribute boolean draggable;
+ [RuntimeEnabled=ContextMenu] attribute HTMLMenuElement? contextMenu;
+ attribute boolean spellcheck;
- // Extensions
- [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter, MeasureAs=HTMLElementInnerText] attribute DOMString innerText;
- [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter, MeasureAs=HTMLElementOuterText] attribute DOMString outerText;
-
- [RuntimeEnabled=IMEAPI] readonly attribute InputMethodContext inputMethodContext;
-
+ // HTMLElement implements ElementContentEditable
+ // https://html.spec.whatwg.org/#contenteditable
[CustomElementCallbacks, RaisesException=Setter] attribute DOMString contentEditable;
readonly attribute boolean isContentEditable;
- [RuntimeEnabled=ContextMenu] attribute HTMLMenuElement? contextMenu;
- attribute boolean spellcheck;
+ // Input Method Editor API
+ // https://dvcs.w3.org/hg/ime-api/raw-file/default/Overview.html#the-inputmethodcontext-property
+ [RuntimeEnabled=IMEAPI] readonly attribute InputMethodContext? inputMethodContext;
- void click();
+ // Non-standard APIs
+ [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter, MeasureAs=HTMLElementInnerText] attribute DOMString innerText;
+ [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter, MeasureAs=HTMLElementOuterText] attribute DOMString outerText;
+ [Reflect, TreatNullAs=NullString, MeasureAs=PrefixedHTMLElementDropzone] attribute DOMString webkitdropzone;
};
HTMLElement implements GlobalEventHandlers;
-
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698