Index: core/dom/Element.idl |
diff --git a/core/dom/Element.idl b/core/dom/Element.idl |
index 29954ca546a97de5f0fbf4cd661dbaef9c8fdcdd..0137af97e908ffbcbb0aec2143830abe76fde417 100644 |
--- a/core/dom/Element.idl |
+++ b/core/dom/Element.idl |
@@ -27,12 +27,12 @@ |
[TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMString tagName; |
[TreatReturnedNullStringAs=Null] DOMString getAttribute([Default=Undefined] optional DOMString name); |
- [RaisesException, DeliverCustomElementCallbacks] void setAttribute([Default=Undefined] optional DOMString name, |
+ [RaisesException, CustomElementCallbacks=Enable] void setAttribute([Default=Undefined] optional DOMString name, |
[Default=Undefined] optional DOMString value); |
- [DeliverCustomElementCallbacks] void removeAttribute([Default=Undefined] optional DOMString name); |
+ [CustomElementCallbacks=Enable] void removeAttribute([Default=Undefined] optional DOMString name); |
Attr getAttributeNode([Default=Undefined] optional DOMString name); |
- [RaisesException, DeliverCustomElementCallbacks] Attr setAttributeNode([Default=Undefined, StrictTypeChecking] optional Attr newAttr); |
- [RaisesException, DeliverCustomElementCallbacks] Attr removeAttributeNode([Default=Undefined, StrictTypeChecking] optional Attr oldAttr); |
+ [RaisesException, CustomElementCallbacks=Enable] Attr setAttributeNode([Default=Undefined, StrictTypeChecking] optional Attr newAttr); |
+ [RaisesException, CustomElementCallbacks=Enable] Attr removeAttributeNode([Default=Undefined, StrictTypeChecking] optional Attr oldAttr); |
[PerWorldBindings] NodeList getElementsByTagName([Default=Undefined] optional DOMString name); |
// For ObjC this is defined on Node for legacy support. |
@@ -43,22 +43,27 @@ |
DOMString getAttributeNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI, |
[Default=Undefined] optional DOMString localName); |
- [RaisesException, DeliverCustomElementCallbacks] void setAttributeNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI, |
+ [RaisesException, CustomElementCallbacks=Enable] void setAttributeNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI, |
[Default=Undefined] optional DOMString qualifiedName, |
[Default=Undefined] optional DOMString value); |
- [DeliverCustomElementCallbacks] void removeAttributeNS([TreatNullAs=NullString] DOMString namespaceURI, |
+ [CustomElementCallbacks=Enable] void removeAttributeNS([TreatNullAs=NullString] DOMString namespaceURI, |
DOMString localName); |
NodeList getElementsByTagNameNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI, |
[Default=Undefined] optional DOMString localName); |
Attr getAttributeNodeNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI, |
[Default=Undefined] optional DOMString localName); |
- [RaisesException] Attr setAttributeNodeNS([Default=Undefined, StrictTypeChecking] optional Attr newAttr); |
+ [RaisesException, CustomElementCallbacks=Enable] Attr setAttributeNodeNS([Default=Undefined, StrictTypeChecking] optional Attr newAttr); |
boolean hasAttribute(DOMString name); |
boolean hasAttributeNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI, |
[Default=Undefined] optional DOMString localName); |
[PerWorldBindings] readonly attribute CSSStyleDeclaration style; |
+ // DOM4 |
+ // iht.com relies on id returning the empty string when no id is present. |
+ // Other browsers do this as well. So we don't convert null to JS null. |
+ [Reflect] attribute DOMString id; |
+ |
// Common extensions |
[PerWorldBindings] readonly attribute long offsetLeft; |
@@ -104,6 +109,7 @@ |
[EnabledAtRuntime=ShadowDOM, Reflect, PerWorldBindings] attribute DOMString pseudo; |
[EnabledAtRuntime=ShadowDOM, RaisesException] ShadowRoot createShadowRoot(); |
[EnabledAtRuntime=ShadowDOM, PerWorldBindings] readonly attribute ShadowRoot shadowRoot; |
+ [EnabledAtRuntime=ShadowDOM, PerWorldBindings] NodeList getDestinationInsertionPoints(); |
// To-be-deprecated prefixed Shadow DOM API |
[Reflect=pseudo, ImplementedAs=pseudo, PerWorldBindings, MeasureAs=ShadowDOMPrefixedPseudo] attribute DOMString webkitPseudo; |
@@ -128,80 +134,79 @@ |
[EnabledAtRuntime=cssRegions] sequence<Range> webkitGetRegionFlowRanges(); |
// Event handler DOM attributes |
- [NotEnumerable, PerWorldBindings] attribute EventListener onabort; |
- [NotEnumerable, PerWorldBindings] attribute EventListener onblur; |
- [NotEnumerable, PerWorldBindings] attribute EventListener onchange; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener onclick; |
- [NotEnumerable, PerWorldBindings] attribute EventListener oncontextmenu; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener ondblclick; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener ondrag; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener ondragend; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener ondragenter; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener ondragleave; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener ondragover; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener ondragstart; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener ondrop; |
- [NotEnumerable, PerWorldBindings] attribute EventListener onerror; |
- [NotEnumerable, PerWorldBindings] attribute EventListener onfocus; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener oninput; |
- [NotEnumerable, PerWorldBindings] attribute EventListener oninvalid; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener onkeydown; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener onkeypress; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener onkeyup; |
- [NotEnumerable, PerWorldBindings] attribute EventListener onload; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener onmousedown; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener onmouseenter; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener onmouseleave; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener onmousemove; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener onmouseout; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener onmouseover; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener onmouseup; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener onmousewheel; |
- [NotEnumerable, PerWorldBindings] attribute EventListener onscroll; |
- [NotEnumerable, PerWorldBindings] attribute EventListener onselect; |
- [NotEnumerable, PerWorldBindings] attribute EventListener onsubmit; |
- |
- // attribute [NotEnumerable] EventListener oncanplay; |
- // attribute [NotEnumerable] EventListener oncanplaythrough; |
- // attribute [NotEnumerable] EventListener ondurationchange; |
- // attribute [NotEnumerable] EventListener onemptied; |
- // attribute [NotEnumerable] EventListener onended; |
- // attribute [NotEnumerable] EventListener onloadeddata; |
- // attribute [NotEnumerable] EventListener onloadedmetadata; |
- // attribute [NotEnumerable] EventListener onloadstart; |
- // attribute [NotEnumerable] EventListener onpause; |
- // attribute [NotEnumerable] EventListener onplay; |
- // attribute [NotEnumerable] EventListener onplaying; |
- // attribute [NotEnumerable] EventListener onprogress; |
- // attribute [NotEnumerable] EventListener onratechange; |
- // attribute [NotEnumerable] EventListener onreadystatechange; |
- // attribute [NotEnumerable] EventListener onseeked; |
- // attribute [NotEnumerable] EventListener onseeking; |
- // attribute [NotEnumerable] EventListener onshow; |
- // attribute [NotEnumerable] EventListener onstalled; |
- // attribute [NotEnumerable] EventListener onsuspend; |
- // attribute [NotEnumerable] EventListener ontimeupdate; |
- // attribute [NotEnumerable] EventListener onvolumechange; |
- // attribute [NotEnumerable] EventListener onwaiting; |
+ [NotEnumerable, PerWorldBindings] attribute EventHandler onabort; |
+ [NotEnumerable, PerWorldBindings] attribute EventHandler onblur; |
+ [NotEnumerable, PerWorldBindings] attribute EventHandler onchange; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler onclick; |
+ [NotEnumerable, PerWorldBindings] attribute EventHandler oncontextmenu; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler ondblclick; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler ondrag; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler ondragend; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler ondragenter; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler ondragleave; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler ondragover; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler ondragstart; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler ondrop; |
+ [NotEnumerable, PerWorldBindings] attribute EventHandler onerror; |
+ [NotEnumerable, PerWorldBindings] attribute EventHandler onfocus; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler oninput; |
+ [NotEnumerable, PerWorldBindings] attribute EventHandler oninvalid; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler onkeydown; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler onkeypress; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler onkeyup; |
+ [NotEnumerable, PerWorldBindings] attribute EventHandler onload; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler onmousedown; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler onmouseenter; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler onmouseleave; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler onmousemove; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler onmouseout; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler onmouseover; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler onmouseup; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler onmousewheel; |
+ [NotEnumerable, PerWorldBindings] attribute EventHandler onscroll; |
+ [NotEnumerable, PerWorldBindings] attribute EventHandler onselect; |
+ [NotEnumerable, PerWorldBindings] attribute EventHandler onsubmit; |
+ |
+ // attribute [NotEnumerable] EventHandler oncanplay; |
+ // attribute [NotEnumerable] EventHandler oncanplaythrough; |
+ // attribute [NotEnumerable] EventHandler ondurationchange; |
+ // attribute [NotEnumerable] EventHandler onemptied; |
+ // attribute [NotEnumerable] EventHandler onended; |
+ // attribute [NotEnumerable] EventHandler onloadeddata; |
+ // attribute [NotEnumerable] EventHandler onloadedmetadata; |
+ // attribute [NotEnumerable] EventHandler onloadstart; |
+ // attribute [NotEnumerable] EventHandler onpause; |
+ // attribute [NotEnumerable] EventHandler onplay; |
+ // attribute [NotEnumerable] EventHandler onplaying; |
+ // attribute [NotEnumerable] EventHandler onprogress; |
+ // attribute [NotEnumerable] EventHandler onratechange; |
+ // attribute [NotEnumerable] EventHandler onreadystatechange; |
+ // attribute [NotEnumerable] EventHandler onseeked; |
+ // attribute [NotEnumerable] EventHandler onseeking; |
+ // attribute [NotEnumerable] EventHandler onshow; |
+ // attribute [NotEnumerable] EventHandler onstalled; |
+ // attribute [NotEnumerable] EventHandler onsuspend; |
+ // attribute [NotEnumerable] EventHandler ontimeupdate; |
+ // attribute [NotEnumerable] EventHandler onvolumechange; |
+ // attribute [NotEnumerable] EventHandler onwaiting; |
// WebKit extensions |
- [NotEnumerable, PerWorldBindings] attribute EventListener onbeforecut; |
- [NotEnumerable, PerWorldBindings] attribute EventListener oncut; |
- [NotEnumerable, PerWorldBindings] attribute EventListener onbeforecopy; |
- [NotEnumerable, PerWorldBindings] attribute EventListener oncopy; |
- [NotEnumerable, PerWorldBindings] attribute EventListener onbeforepaste; |
- [NotEnumerable, PerWorldBindings] attribute EventListener onpaste; |
- [NotEnumerable, PerWorldBindings] attribute EventListener onreset; |
- [NotEnumerable, PerWorldBindings] attribute EventListener onsearch; |
- [NotEnumerable, PerWorldBindings] attribute EventListener onselectstart; |
- [NotEnumerable, EnabledAtRuntime=touch, PerWorldBindings] attribute EventListener ontouchstart; |
- [NotEnumerable, EnabledAtRuntime=touch, PerWorldBindings] attribute EventListener ontouchmove; |
- [NotEnumerable, EnabledAtRuntime=touch, PerWorldBindings] attribute EventListener ontouchend; |
- [NotEnumerable, EnabledAtRuntime=touch, PerWorldBindings] attribute EventListener ontouchcancel; |
- [NotEnumerable, PerWorldBindings] attribute EventListener onwebkitfullscreenchange; |
- [NotEnumerable, PerWorldBindings] attribute EventListener onwebkitfullscreenerror; |
+ [NotEnumerable, PerWorldBindings] attribute EventHandler onbeforecut; |
+ [NotEnumerable, PerWorldBindings] attribute EventHandler oncut; |
+ [NotEnumerable, PerWorldBindings] attribute EventHandler onbeforecopy; |
+ [NotEnumerable, PerWorldBindings] attribute EventHandler oncopy; |
+ [NotEnumerable, PerWorldBindings] attribute EventHandler onbeforepaste; |
+ [NotEnumerable, PerWorldBindings] attribute EventHandler onpaste; |
+ [NotEnumerable, PerWorldBindings] attribute EventHandler onreset; |
+ [NotEnumerable, PerWorldBindings] attribute EventHandler onsearch; |
+ [NotEnumerable, PerWorldBindings] attribute EventHandler onselectstart; |
+ [NotEnumerable, EnabledAtRuntime=touch, PerWorldBindings] attribute EventHandler ontouchstart; |
+ [NotEnumerable, EnabledAtRuntime=touch, PerWorldBindings] attribute EventHandler ontouchmove; |
+ [NotEnumerable, EnabledAtRuntime=touch, PerWorldBindings] attribute EventHandler ontouchend; |
+ [NotEnumerable, EnabledAtRuntime=touch, PerWorldBindings] attribute EventHandler ontouchcancel; |
+ [NotEnumerable, PerWorldBindings] attribute EventHandler onwebkitfullscreenchange; |
+ [NotEnumerable, PerWorldBindings] attribute EventHandler onwebkitfullscreenerror; |
}; |
Element implements ParentNode; |
Element implements ChildNode; |
- |