| Index: core/dom/Element.idl
|
| diff --git a/core/dom/Element.idl b/core/dom/Element.idl
|
| index 93843ed81c010e682f36d88b42f9777a9cc9e0e4..89e5e7c87f1ee6b5c87f433b0b597c6dac1f8fcf 100644
|
| --- a/core/dom/Element.idl
|
| +++ b/core/dom/Element.idl
|
| @@ -24,14 +24,14 @@
|
|
|
| // DOM Level 1 Core
|
|
|
| - [TreatReturnedNullStringAs=Null] readonly attribute DOMString tagName;
|
| + readonly attribute DOMString? tagName;
|
|
|
| - [TreatReturnedNullStringAs=Null, DartNoAutoScope] DOMString getAttribute(DOMString name);
|
| + [DartNoAutoScope] DOMString? getAttribute(DOMString name);
|
| [RaisesException, CustomElementCallbacks, DartNoAutoScope] void setAttribute(DOMString name, DOMString value);
|
| [CustomElementCallbacks] void removeAttribute(DOMString name);
|
| [MeasureAs=ElementGetAttributeNode] Attr getAttributeNode([Default=Undefined] optional DOMString name); // Removed from DOM4.
|
| - [RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNode] Attr setAttributeNode([Default=Undefined, TypeChecking=Nullable] optional Attr newAttr); // Removed from DOM4.
|
| - [RaisesException, CustomElementCallbacks, MeasureAs=ElementRemoveAttributeNode] Attr removeAttributeNode([Default=Undefined, TypeChecking=Nullable] optional Attr oldAttr); // Removed from DOM4.
|
| + [RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNode] Attr setAttributeNode([Default=Undefined] optional Attr newAttr); // Removed from DOM4.
|
| + [RaisesException, CustomElementCallbacks, MeasureAs=ElementRemoveAttributeNode] Attr removeAttributeNode([Default=Undefined] optional Attr oldAttr); // Removed from DOM4.
|
| HTMLCollection getElementsByTagName(DOMString name);
|
|
|
| [PerWorldBindings, ImplementedAs=attributesForBindings] readonly attribute NamedNodeMap attributes;
|
| @@ -39,23 +39,23 @@
|
|
|
| // DOM Level 2 Core
|
|
|
| - [TreatReturnedNullStringAs=Null, DartNoAutoScope] DOMString getAttributeNS([TreatNullAs=NullString] DOMString namespaceURI, DOMString localName);
|
| - [RaisesException, CustomElementCallbacks, DartNoAutoScope] void setAttributeNS([TreatNullAs=NullString] DOMString namespaceURI, DOMString qualifiedName, DOMString value);
|
| - [CustomElementCallbacks] void removeAttributeNS([TreatNullAs=NullString] DOMString namespaceURI, DOMString localName);
|
| - HTMLCollection getElementsByTagNameNS([TreatNullAs=NullString] DOMString namespaceURI, DOMString localName);
|
| - [MeasureAs=ElementGetAttributeNodeNS] Attr getAttributeNodeNS([TreatNullAs=NullString, Default=Undefined] optional DOMString namespaceURI,
|
| + [DartNoAutoScope] DOMString? getAttributeNS(DOMString? namespaceURI, DOMString localName);
|
| + [RaisesException, CustomElementCallbacks, DartNoAutoScope] void setAttributeNS(DOMString? namespaceURI, DOMString qualifiedName, DOMString value);
|
| + [CustomElementCallbacks] void removeAttributeNS(DOMString? namespaceURI, DOMString localName);
|
| + HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString localName);
|
| + [MeasureAs=ElementGetAttributeNodeNS] Attr getAttributeNodeNS([Default=Undefined] optional DOMString? namespaceURI,
|
| [Default=Undefined] optional DOMString localName); // Removed from DOM4.
|
| - [RaisesException, CustomElementCallbacks, DeprecateAs=ElementSetAttributeNodeNS] Attr setAttributeNodeNS([Default=Undefined, TypeChecking=Nullable] optional Attr newAttr); // Removed from DOM4.
|
| + [RaisesException, CustomElementCallbacks, DeprecateAs=ElementSetAttributeNodeNS] Attr setAttributeNodeNS([Default=Undefined] optional Attr newAttr); // Removed from DOM4.
|
| boolean hasAttribute(DOMString name);
|
| - boolean hasAttributeNS([TreatNullAs=NullString] DOMString namespaceURI, DOMString localName);
|
| + boolean hasAttributeNS(DOMString? namespaceURI, DOMString localName);
|
|
|
| [PerWorldBindings] readonly attribute CSSStyleDeclaration style;
|
|
|
| // DOM4
|
| [Reflect, DartNoAutoScope] attribute DOMString id;
|
| - [TreatReturnedNullStringAs=Null] readonly attribute DOMString namespaceURI;
|
| - [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, RaisesException=Setter] attribute DOMString prefix;
|
| - [TreatReturnedNullStringAs=Null] readonly attribute DOMString localName;
|
| + readonly attribute DOMString? namespaceURI;
|
| + [RaisesException=Setter] attribute DOMString? prefix;
|
| + readonly attribute DOMString? localName;
|
|
|
| [RaisesException] boolean matches(DOMString selectors);
|
|
|
| @@ -87,12 +87,10 @@
|
| // WebKit extensions
|
|
|
| [MeasureAs=ElementScrollIntoViewIfNeeded] void scrollIntoViewIfNeeded(optional boolean centerIfNeeded);
|
| - [MeasureAs=ElementScrollByLines] void scrollByLines([Default=Undefined] optional long lines);
|
| - [MeasureAs=ElementScrollByPages] void scrollByPages([Default=Undefined] optional long pages);
|
|
|
| // HTML 5
|
| HTMLCollection getElementsByClassName(DOMString classNames);
|
| - [TreatNullAs=NullString, CustomElementCallbacks, PerWorldBindings, LogActivity=SetterOnly, RaisesException=Setter] attribute DOMString innerHTML;
|
| + [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter] attribute DOMString innerHTML;
|
| [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter] attribute DOMString outerHTML;
|
|
|
| [RaisesException, CustomElementCallbacks, MeasureAs=InsertAdjacentElement] Element insertAdjacentElement(DOMString where, Element element);
|
| @@ -116,14 +114,6 @@
|
| ClientRectList getClientRects();
|
| ClientRect getBoundingClientRect();
|
|
|
| - // Mozilla version
|
| - const unsigned short ALLOW_KEYBOARD_INPUT = 1;
|
| - [LogActivity, LogAllWorlds, MeasureAs=PrefixedElementRequestFullScreen] void webkitRequestFullScreen([Default=Undefined] optional unsigned short flags);
|
| -
|
| - // W3C version
|
| - [LogActivity, LogAllWorlds, MeasureAs=PrefixedElementRequestFullscreen] void webkitRequestFullscreen();
|
| -
|
| - [MeasureAs=PrefixedElementRequestPointerLock] void webkitRequestPointerLock();
|
| [MeasureAs=ElementRequestPointerLock] void requestPointerLock();
|
|
|
| // Event handler attributes
|
| @@ -139,9 +129,7 @@
|
| [RuntimeEnabled=Touch] attribute EventHandler ontouchend;
|
| [RuntimeEnabled=Touch] attribute EventHandler ontouchmove;
|
| [RuntimeEnabled=Touch] attribute EventHandler ontouchstart;
|
| - attribute EventHandler onwebkitfullscreenchange;
|
| - attribute EventHandler onwebkitfullscreenerror;
|
| - [LogActivity=SetterOnly] attribute EventHandler onwheel;
|
| + attribute EventHandler onwheel;
|
| };
|
|
|
| Element implements ParentNode;
|
|
|