Index: core/dom/Element.idl |
diff --git a/core/dom/Element.idl b/core/dom/Element.idl |
index 0137af97e908ffbcbb0aec2143830abe76fde417..9af4c05a8c27614a566143c7b55a65afb249d359 100644 |
--- a/core/dom/Element.idl |
+++ b/core/dom/Element.idl |
@@ -30,12 +30,11 @@ |
[RaisesException, CustomElementCallbacks=Enable] void setAttribute([Default=Undefined] optional DOMString name, |
[Default=Undefined] optional DOMString value); |
[CustomElementCallbacks=Enable] void removeAttribute([Default=Undefined] optional DOMString name); |
- Attr getAttributeNode([Default=Undefined] optional DOMString name); |
- [RaisesException, CustomElementCallbacks=Enable] Attr setAttributeNode([Default=Undefined, StrictTypeChecking] optional Attr newAttr); |
- [RaisesException, CustomElementCallbacks=Enable] Attr removeAttributeNode([Default=Undefined, StrictTypeChecking] optional Attr oldAttr); |
+ [MeasureAs=ElementGetAttributeNode] Attr getAttributeNode([Default=Undefined] optional DOMString name); // Removed from DOM4. |
+ [RaisesException, CustomElementCallbacks=Enable, MeasureAs=ElementSetAttributeNode] Attr setAttributeNode([Default=Undefined, StrictTypeChecking] optional Attr newAttr); // Removed from DOM4. |
+ [RaisesException, CustomElementCallbacks=Enable, MeasureAs=ElementRemoveAttributeNode] Attr removeAttributeNode([Default=Undefined, StrictTypeChecking] optional Attr oldAttr); // Removed from DOM4. |
[PerWorldBindings] NodeList getElementsByTagName([Default=Undefined] optional DOMString name); |
- // For ObjC this is defined on Node for legacy support. |
[PerWorldBindings] readonly attribute NamedNodeMap attributes; |
boolean hasAttributes(); |
@@ -50,8 +49,8 @@ |
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); |
+ [MeasureAs=ElementGetAttributeNodeNS] Attr getAttributeNodeNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI, |
+ [Default=Undefined] optional DOMString localName); // Removed from DOM4. |
[RaisesException, CustomElementCallbacks=Enable] Attr setAttributeNodeNS([Default=Undefined, StrictTypeChecking] optional Attr newAttr); |
boolean hasAttribute(DOMString name); |
boolean hasAttributeNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI, |
@@ -63,6 +62,9 @@ |
// 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; |
+ [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMString namespaceURI; |
+ [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, PerWorldBindings, SetterRaisesException] attribute DOMString prefix; |
+ [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMString localName; |
// Common extensions |
@@ -162,7 +164,8 @@ |
[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, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler onmousewheel; // Deprecated in favor of onwheel. |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler onwheel; |
[NotEnumerable, PerWorldBindings] attribute EventHandler onscroll; |
[NotEnumerable, PerWorldBindings] attribute EventHandler onselect; |
[NotEnumerable, PerWorldBindings] attribute EventHandler onsubmit; |