Index: core/dom/Document.idl |
diff --git a/core/dom/Document.idl b/core/dom/Document.idl |
index 0fc91ba9df1a5d9367b7bc9baa6d17cf3a4d989b..bea2b66b88ee716e8cc0bfebdf7af983c338da79 100644 |
--- a/core/dom/Document.idl |
+++ b/core/dom/Document.idl |
@@ -33,10 +33,10 @@ callback CustomElementConstructor = Element (); |
DocumentFragment createDocumentFragment(); |
[PerWorldBindings] Text createTextNode([Default=Undefined] optional DOMString data); |
Comment createComment([Default=Undefined] optional DOMString data); |
- [RaisesException] CDATASection createCDATASection([Default=Undefined] optional DOMString data); |
+ [RaisesException, MeasureAs=DocumentCreateCDATASection] CDATASection createCDATASection([Default=Undefined] optional DOMString data); // Removed from DOM4. |
[RaisesException] ProcessingInstruction createProcessingInstruction([Default=Undefined] optional DOMString target, |
[Default=Undefined] optional DOMString data); |
- [RaisesException] Attr createAttribute([Default=Undefined] optional DOMString name); |
+ [RaisesException, MeasureAs=DocumentCreateAttribute] Attr createAttribute([Default=Undefined] optional DOMString name); // Removed from DOM4. |
[PerWorldBindings] NodeList getElementsByTagName([Default=Undefined] optional DOMString tagname); |
// Introduced in DOM Level 2: |
@@ -45,19 +45,19 @@ callback CustomElementConstructor = Element (); |
optional boolean deep); |
[CustomElementCallbacks=Enable, PerWorldBindings, ActivityLog=AccessForIsolatedWorlds, RaisesException] Element createElementNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI, |
[TreatNullAs=NullString,Default=Undefined] optional DOMString qualifiedName); |
- [RaisesException] Attr createAttributeNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI, |
- [TreatNullAs=NullString,Default=Undefined] optional DOMString qualifiedName); |
+ [RaisesException, MeasureAs=DocumentCreateAttributeNS] Attr createAttributeNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI, |
+ [TreatNullAs=NullString,Default=Undefined] optional DOMString qualifiedName); // Removed from DOM4. |
NodeList getElementsByTagNameNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI, |
[Default=Undefined] optional DOMString localName); |
[PerWorldBindings] Element getElementById([Default=Undefined] optional DOMString elementId); |
// DOM Level 3 Core |
- [TreatReturnedNullStringAs=Null] readonly attribute DOMString inputEncoding; |
+ [TreatReturnedNullStringAs=Null, MeasureAs=DocumentInputEncoding] readonly attribute DOMString inputEncoding; // Removed from DOM4. |
- [TreatReturnedNullStringAs=Null] readonly attribute DOMString xmlEncoding; |
- [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, SetterRaisesException] attribute DOMString xmlVersion; |
- [SetterRaisesException] attribute boolean xmlStandalone; |
+ [TreatReturnedNullStringAs=Null, MeasureAs=DocumentXMLEncoding] readonly attribute DOMString xmlEncoding; // Removed from DOM4. |
+ [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, SetterRaisesException, MeasureAs=DocumentXMLVersion] attribute DOMString xmlVersion; // Removed from DOM4. |
+ [SetterRaisesException, MeasureAs=DocumentXMLStandalone] attribute boolean xmlStandalone; // Removed from DOM4. |
[RaisesException, CustomElementCallbacks=Enable] Node adoptNode([Default=Undefined] optional Node source); |
@@ -133,9 +133,8 @@ callback CustomElementConstructor = Element (); |
[Custom, Replaceable, PerWorldBindings, ActivityLog=AccessForIsolatedWorlds] readonly attribute Location location; |
// IE extensions |
- |
- [TreatReturnedNullStringAs=Undefined, TreatNullAs=NullString] attribute DOMString charset; |
- [TreatReturnedNullStringAs=Undefined] readonly attribute DOMString defaultCharset; |
+ [MeasureAs=DocumentCharset, TreatReturnedNullStringAs=Undefined, TreatNullAs=NullString] attribute DOMString charset; |
+ [MeasureAs=DocumentCharset, TreatReturnedNullStringAs=Undefined] readonly attribute DOMString defaultCharset; |
[TreatReturnedNullStringAs=Undefined] readonly attribute DOMString readyState; |
Element elementFromPoint([Default=Undefined] optional long x, |
@@ -199,7 +198,8 @@ callback CustomElementConstructor = Element (); |
[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] attribute EventHandler onreadystatechange; |
[NotEnumerable] attribute EventHandler onscroll; |
[NotEnumerable] attribute EventHandler onselect; |
@@ -261,8 +261,8 @@ callback CustomElementConstructor = Element (); |
[Default=Undefined] optional float webkitForce); |
[EnabledAtRuntime=touch, Custom, RaisesException] TouchList createTouchList(); |
- [DeprecateAs=PrefixedDocumentRegister, EnabledAtRuntime=customDOMElements, ImplementedAs=registerElement, CallWith=ScriptState, CustomElementCallbacks=Enable, RaisesException] CustomElementConstructor webkitRegister(DOMString name, optional Dictionary options); |
- [EnabledAtRuntime=customDOMElements, ImplementedAs=registerElement, CallWith=ScriptState, CustomElementCallbacks=Enable, RaisesException] CustomElementConstructor register(DOMString name, optional Dictionary options); |
+ [DeprecateAs=PrefixedDocumentRegister, EnabledAtRuntime=customElements, ImplementedAs=registerElement, CallWith=ScriptState, CustomElementCallbacks=Enable, RaisesException] CustomElementConstructor webkitRegister(DOMString name, optional Dictionary options); |
+ [EnabledAtRuntime=customElements, ImplementedAs=registerElement, CallWith=ScriptState, CustomElementCallbacks=Enable, RaisesException] CustomElementConstructor register(DOMString name, optional Dictionary options); |
[CustomElementCallbacks=Enable, PerWorldBindings, ActivityLog=AccessForIsolatedWorlds, RaisesException] Element createElement(DOMString localName, [TreatNullAs=NullString] DOMString typeExtension); |
[CustomElementCallbacks=Enable, PerWorldBindings, ActivityLog=AccessForIsolatedWorlds, RaisesException] Element createElementNS([TreatNullAs=NullString] DOMString namespaceURI, DOMString qualifiedName, |
[TreatNullAs=NullString] DOMString typeExtension); |