| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2011 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2006, 2007 Samuel Weinig <sam@webkit.org> | 3 * Copyright (C) 2006, 2007 Samuel Weinig <sam@webkit.org> |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
| 16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
| 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 [ | 21 [ |
| 22 CustomToJSObject | 22 CustomToJSObject |
| 23 ] interface Document : Node { | 23 ] interface Document : Node { |
| 24 | 24 |
| 25 // DOM Level 1 Core | 25 // DOM Level 1 Core |
| 26 readonly attribute DocumentType doctype; | 26 readonly attribute DocumentType doctype; |
| 27 readonly attribute DOMImplementation implementation; | 27 readonly attribute DOMImplementation implementation; |
| 28 readonly attribute Element documentElement; | 28 readonly attribute Element documentElement; |
| 29 | 29 |
| 30 [ReturnNewObject, DeliverCustomElementCallbacks, PerWorldBindings, RaisesExc
eption] Element createElement([TreatNullAs=NullString,Default=Undefined] optiona
l DOMString tagName); | 30 [ReturnNewObject, DeliverCustomElementCallbacks, PerWorldBindings, ActivityL
og=AccessForIsolatedWorlds, RaisesException] Element createElement([TreatNullAs=
NullString,Default=Undefined] optional DOMString tagName); |
| 31 DocumentFragment createDocumentFragment(); | 31 DocumentFragment createDocumentFragment(); |
| 32 [ReturnNewObject, PerWorldBindings] Text createTextNode([Default=Undefined]
optional DOMString data); | 32 [ReturnNewObject, PerWorldBindings] Text createTextNode([Default=Undefined]
optional DOMString data); |
| 33 [ReturnNewObject] Comment createComment([Default=Undefined] optional DOMStri
ng data); | 33 [ReturnNewObject] Comment createComment([Default=Undefined] optional DOMStri
ng data); |
| 34 [ReturnNewObject, RaisesException] CDATASection createCDATASection([Default=
Undefined] optional DOMString data); | 34 [ReturnNewObject, RaisesException] CDATASection createCDATASection([Default=
Undefined] optional DOMString data); |
| 35 [ReturnNewObject, RaisesException] ProcessingInstruction createProcessingIns
truction([Default=Undefined] optional DOMString target, | 35 [ReturnNewObject, RaisesException] ProcessingInstruction createProcessingIns
truction([Default=Undefined] optional DOMString target, |
| 36
[Default=Undefined] optional DOMString data); | 36
[Default=Undefined] optional DOMString data); |
| 37 [ReturnNewObject, RaisesException] Attr createAttribute([Default=Undefined]
optional DOMString name); | 37 [ReturnNewObject, RaisesException] Attr createAttribute([Default=Undefined]
optional DOMString name); |
| 38 [ReturnNewObject, RaisesException] EntityReference createEntityReference([De
fault=Undefined] optional DOMString name); | 38 [ReturnNewObject, RaisesException] EntityReference createEntityReference([De
fault=Undefined] optional DOMString name); |
| 39 [PerWorldBindings] NodeList getElementsByTagName([Default=Undefine
d] optional DOMString tagname); | 39 [PerWorldBindings] NodeList getElementsByTagName([Default=Undefine
d] optional DOMString tagname); |
| 40 | 40 |
| 41 // Introduced in DOM Level 2: | 41 // Introduced in DOM Level 2: |
| 42 | 42 |
| 43 [ReturnNewObject, DeliverCustomElementCallbacks, RaisesException] Node impor
tNode([Default=Undefined] optional Node importedNode, | 43 [ReturnNewObject, DeliverCustomElementCallbacks, PerWorldBindings, ActivityL
og=AccessForIsolatedWorlds, RaisesException] Node importNode([Default=Undefined]
optional Node importedNode, |
| 44 optional boolean deep); | 44 optional boolean deep); |
| 45 [ReturnNewObject, DeliverCustomElementCallbacks, RaisesException] Element cr
eateElementNS([TreatNullAs=NullString,Default=Undefined] optional DOMString name
spaceURI, | 45 [ReturnNewObject, DeliverCustomElementCallbacks, PerWorldBindings, ActivityL
og=AccessForIsolatedWorlds, RaisesException] Element createElementNS([TreatNullA
s=NullString,Default=Undefined] optional DOMString namespaceURI, |
| 46 [TreatNullAs=NullString,Default=Undefined] optional
DOMString qualifiedName); | 46 [TreatNullAs=NullString,Default=Undefined] optional
DOMString qualifiedName); |
| 47 [ReturnNewObject, RaisesException] Attr createAttributeNS([TreatNullAs=NullS
tring,Default=Undefined] optional DOMString namespaceURI, | 47 [ReturnNewObject, RaisesException] Attr createAttributeNS([TreatNullAs=NullS
tring,Default=Undefined] optional DOMString namespaceURI, |
| 48 [Treat
NullAs=NullString,Default=Undefined] optional DOMString qualifiedName); | 48 [Treat
NullAs=NullString,Default=Undefined] optional DOMString qualifiedName); |
| 49 NodeList getElementsByTagNameNS([TreatNullAs=NullString,Default=Undefined]
optional DOMString namespaceURI, | 49 NodeList getElementsByTagNameNS([TreatNullAs=NullString,Default=Undefined]
optional DOMString namespaceURI, |
| 50 [Default=Undefined] optional
DOMString localName); | 50 [Default=Undefined] optional
DOMString localName); |
| 51 [PerWorldBindings] Element getElementById([Default=Undefined] opt
ional DOMString elementId); | 51 [PerWorldBindings] Element getElementById([Default=Undefined] opt
ional DOMString elementId); |
| 52 | 52 |
| 53 // DOM Level 3 Core | 53 // DOM Level 3 Core |
| 54 | 54 |
| 55 [TreatReturnedNullStringAs=Null] readonly attribute DOMString inputEncoding; | 55 [TreatReturnedNullStringAs=Null] readonly attribute DOMString inputEncoding; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 readonly attribute HTMLHeadElement head; | 130 readonly attribute HTMLHeadElement head; |
| 131 readonly attribute HTMLCollection images; | 131 readonly attribute HTMLCollection images; |
| 132 readonly attribute HTMLCollection applets; | 132 readonly attribute HTMLCollection applets; |
| 133 readonly attribute HTMLCollection links; | 133 readonly attribute HTMLCollection links; |
| 134 readonly attribute HTMLCollection forms; | 134 readonly attribute HTMLCollection forms; |
| 135 readonly attribute HTMLCollection anchors; | 135 readonly attribute HTMLCollection anchors; |
| 136 readonly attribute DOMString lastModified; | 136 readonly attribute DOMString lastModified; |
| 137 | 137 |
| 138 [PerWorldBindings] NodeList getElementsByName([Default=Undefined] optional D
OMString elementName); | 138 [PerWorldBindings] NodeList getElementsByName([Default=Undefined] optional D
OMString elementName); |
| 139 | 139 |
| 140 [Custom] attribute Location location; | 140 [Custom, PerWorldBindings, ActivityLog=AccessForIsolatedWorlds] attribute Lo
cation location; |
| 141 | 141 |
| 142 // IE extensions | 142 // IE extensions |
| 143 | 143 |
| 144 [TreatReturnedNullStringAs=Undefined, TreatNullAs=NullString] attri
bute DOMString charset; | 144 [TreatReturnedNullStringAs=Undefined, TreatNullAs=NullString] attri
bute DOMString charset; |
| 145 [TreatReturnedNullStringAs=Undefined] readonly attribute DOMString defaultCh
arset; | 145 [TreatReturnedNullStringAs=Undefined] readonly attribute DOMString defaultCh
arset; |
| 146 [TreatReturnedNullStringAs=Undefined] readonly attribute DOMString readyStat
e; | 146 [TreatReturnedNullStringAs=Undefined] readonly attribute DOMString readyStat
e; |
| 147 | 147 |
| 148 Element elementFromPoint([Default=Undefined] optional long x, | 148 Element elementFromPoint([Default=Undefined] optional long x, |
| 149 [Default=Undefined] optional long y); | 149 [Default=Undefined] optional long y); |
| 150 Range caretRangeFromPoint([Default=Undefined] optional long x, | 150 Range caretRangeFromPoint([Default=Undefined] optional long x, |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 [Default=Undefined] optiona
l long screenX, | 272 [Default=Undefined] optiona
l long screenX, |
| 273 [Default=Undefined] optiona
l long screenY, | 273 [Default=Undefined] optiona
l long screenY, |
| 274 [Default=Undefined] optiona
l long webkitRadiusX, | 274 [Default=Undefined] optiona
l long webkitRadiusX, |
| 275 [Default=Undefined] optiona
l long webkitRadiusY, | 275 [Default=Undefined] optiona
l long webkitRadiusY, |
| 276 [Default=Undefined] optiona
l float webkitRotationAngle, | 276 [Default=Undefined] optiona
l float webkitRotationAngle, |
| 277 [Default=Undefined] optiona
l float webkitForce); | 277 [Default=Undefined] optiona
l float webkitForce); |
| 278 [ReturnNewObject, EnabledAtRuntime=touch, Custom, RaisesException] TouchList
createTouchList(); | 278 [ReturnNewObject, EnabledAtRuntime=touch, Custom, RaisesException] TouchList
createTouchList(); |
| 279 | 279 |
| 280 #if defined(ENABLE_CUSTOM_ELEMENTS) && ENABLE_CUSTOM_ELEMENTS | 280 #if defined(ENABLE_CUSTOM_ELEMENTS) && ENABLE_CUSTOM_ELEMENTS |
| 281 [EnabledAtRuntime=customDOMElements, Conditional=CUSTOM_ELEMENTS, Implemente
dAs=registerElement, CallWith=ScriptState, DeliverCustomElementCallbacks, Raises
Exception] CustomElementConstructor webkitRegister(DOMString name, optional Dict
ionary options); | 281 [EnabledAtRuntime=customDOMElements, Conditional=CUSTOM_ELEMENTS, Implemente
dAs=registerElement, CallWith=ScriptState, DeliverCustomElementCallbacks, Raises
Exception] CustomElementConstructor webkitRegister(DOMString name, optional Dict
ionary options); |
| 282 [ReturnNewObject, DeliverCustomElementCallbacks, PerWorldBindings, RaisesExc
eption] Element createElement(DOMString localName, [TreatNullAs=NullString] DOMS
tring typeExtension); | 282 [ReturnNewObject, DeliverCustomElementCallbacks, PerWorldBindings, ActivityL
og=AccessForIsolatedWorlds, RaisesException] Element createElement(DOMString loc
alName, [TreatNullAs=NullString] DOMString typeExtension); |
| 283 [ReturnNewObject, DeliverCustomElementCallbacks, RaisesException] Element cr
eateElementNS([TreatNullAs=NullString] DOMString namespaceURI, DOMString qualifi
edName, | 283 [ReturnNewObject, DeliverCustomElementCallbacks, PerWorldBindings, ActivityL
og=AccessForIsolatedWorlds, RaisesException] Element createElementNS([TreatNullA
s=NullString] DOMString namespaceURI, DOMString qualifiedName, |
| 284 [TreatNullAs=NullString] DOMString typeExtension); | 284 [TreatNullAs=NullString] DOMString typeExtension); |
| 285 #endif | 285 #endif |
| 286 | 286 |
| 287 // Page visibility API. | 287 // Page visibility API. |
| 288 readonly attribute DOMString webkitVisibilityState; | 288 readonly attribute DOMString webkitVisibilityState; |
| 289 readonly attribute boolean webkitHidden; | 289 readonly attribute boolean webkitHidden; |
| 290 | 290 |
| 291 // Security Policy API: http://dvcs.w3.org/hg/content-security-policy/raw-fi
le/tip/csp-specification.dev.html#script-interfaces | 291 // Security Policy API: http://dvcs.w3.org/hg/content-security-policy/raw-fi
le/tip/csp-specification.dev.html#script-interfaces |
| 292 [EnabledAtRuntime=experimentalContentSecurityPolicyFeatures] readonly attrib
ute DOMSecurityPolicy securityPolicy; | 292 [EnabledAtRuntime=experimentalContentSecurityPolicyFeatures] readonly attrib
ute DOMSecurityPolicy securityPolicy; |
| 293 | 293 |
| 294 }; | 294 }; |
| 295 | 295 |
| OLD | NEW |