| 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, |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 [ | 25 [ |
| 26 SpecialWrapFor=HTMLDocument|XMLDocument | 26 SpecialWrapFor=HTMLDocument|XMLDocument |
| 27 ] interface Document : Node { | 27 ] interface Document : Node { |
| 28 | 28 |
| 29 // DOM Level 1 Core | 29 // DOM Level 1 Core |
| 30 readonly attribute DocumentType doctype; | 30 readonly attribute DocumentType doctype; |
| 31 readonly attribute DOMImplementation implementation; | 31 readonly attribute DOMImplementation implementation; |
| 32 readonly attribute Element documentElement; | 32 readonly attribute Element documentElement; |
| 33 | 33 |
| 34 [CustomElementCallbacks, PerWorldBindings, ActivityLogging=ForIsolatedWorlds
, RaisesException] Element createElement(DOMString tagName); | 34 [CustomElementCallbacks, PerWorldBindings, LogActivity, RaisesException] Ele
ment createElement(DOMString tagName); |
| 35 DocumentFragment createDocumentFragment(); | 35 DocumentFragment createDocumentFragment(); |
| 36 [PerWorldBindings] Text createTextNode(DOMString data); | 36 [PerWorldBindings] Text createTextNode(DOMString data); |
| 37 Comment createComment(DOMString data); | 37 Comment createComment(DOMString data); |
| 38 [RaisesException, MeasureAs=DocumentCreateCDATASection] CDATASection createC
DATASection([Default=Undefined] optional DOMString data); // Removed from DOM4. | 38 [RaisesException, MeasureAs=DocumentCreateCDATASection] CDATASection createC
DATASection([Default=Undefined] optional DOMString data); // Removed from DOM4. |
| 39 [RaisesException] ProcessingInstruction createProcessingInstruction(DOMStrin
g target, DOMString data); | 39 [RaisesException] ProcessingInstruction createProcessingInstruction(DOMStrin
g target, DOMString data); |
| 40 [RaisesException, MeasureAs=DocumentCreateAttribute] Attr createAttribute([D
efault=Undefined] optional DOMString name); // Removed from DOM4. | 40 [RaisesException, MeasureAs=DocumentCreateAttribute] Attr createAttribute([D
efault=Undefined] optional DOMString name); // Removed from DOM4. |
| 41 [PerWorldBindings] HTMLCollection getElementsByTagName(DOMString localName); | 41 [PerWorldBindings] HTMLCollection getElementsByTagName(DOMString localName); |
| 42 | 42 |
| 43 // Introduced in DOM Level 2: | 43 // Introduced in DOM Level 2: |
| 44 | 44 |
| 45 [CustomElementCallbacks, PerWorldBindings, ActivityLogging=ForIsolatedWorlds
, RaisesException] Node importNode(Node node, optional boolean deep); | 45 [CustomElementCallbacks, PerWorldBindings, LogActivity, RaisesException] Nod
e importNode(Node node, optional boolean deep); |
| 46 [CustomElementCallbacks, PerWorldBindings, ActivityLogging=ForIsolatedWorlds
, RaisesException] Element createElementNS([TreatNullAs=NullString] DOMString na
mespaceURI, DOMString qualifiedName); | 46 [CustomElementCallbacks, PerWorldBindings, LogActivity, RaisesException] Ele
ment createElementNS([TreatNullAs=NullString] DOMString namespaceURI, DOMString
qualifiedName); |
| 47 [RaisesException, DeprecateAs=DocumentCreateAttributeNS] Attr createAttribut
eNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI, | 47 [RaisesException, DeprecateAs=DocumentCreateAttributeNS] Attr createAttribut
eNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI, |
| 48
[TreatNullAs=NullString,Default=Undefined] optional DOMString qualifiedName);
// Removed from DOM4. | 48
[TreatNullAs=NullString,Default=Undefined] optional DOMString qualifiedName);
// Removed from DOM4. |
| 49 HTMLCollection getElementsByTagNameNS([TreatNullAs=NullString] DOMString nam
espaceURI, DOMString localName); | 49 HTMLCollection getElementsByTagNameNS([TreatNullAs=NullString] DOMString nam
espaceURI, DOMString localName); |
| 50 [PerWorldBindings] Element getElementById(DOMString elementId); | 50 [PerWorldBindings] Element getElementById(DOMString elementId); |
| 51 | 51 |
| 52 // DOM Level 3 Core | 52 // DOM Level 3 Core |
| 53 | 53 |
| 54 [TreatReturnedNullStringAs=Null, MeasureAs=DocumentInputEncoding] readonly a
ttribute DOMString inputEncoding; // Removed from DOM4. | 54 [TreatReturnedNullStringAs=Null, MeasureAs=DocumentInputEncoding] readonly a
ttribute DOMString inputEncoding; // Removed from DOM4. |
| 55 | 55 |
| 56 [TreatReturnedNullStringAs=Null, MeasureAs=DocumentXMLEncoding] readonly att
ribute DOMString xmlEncoding; // Removed from DOM4. | 56 [TreatReturnedNullStringAs=Null, MeasureAs=DocumentXMLEncoding] readonly att
ribute DOMString xmlEncoding; // Removed from DOM4. |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 readonly attribute HTMLCollection embeds; | 124 readonly attribute HTMLCollection embeds; |
| 125 [ImplementedAs=embeds] readonly attribute HTMLCollection plugins; | 125 [ImplementedAs=embeds] readonly attribute HTMLCollection plugins; |
| 126 readonly attribute HTMLCollection links; | 126 readonly attribute HTMLCollection links; |
| 127 readonly attribute HTMLCollection forms; | 127 readonly attribute HTMLCollection forms; |
| 128 readonly attribute HTMLCollection scripts; | 128 readonly attribute HTMLCollection scripts; |
| 129 readonly attribute HTMLCollection anchors; | 129 readonly attribute HTMLCollection anchors; |
| 130 readonly attribute DOMString lastModified; | 130 readonly attribute DOMString lastModified; |
| 131 | 131 |
| 132 [PerWorldBindings] NodeList getElementsByName([Default=Undefined] optional D
OMString elementName); | 132 [PerWorldBindings] NodeList getElementsByName([Default=Undefined] optional D
OMString elementName); |
| 133 | 133 |
| 134 [PerWorldBindings, ActivityLogging=ForIsolatedWorlds, PutForwards=href] read
only attribute Location location; | 134 [PerWorldBindings, LogActivity, PutForwards=href] readonly attribute Locatio
n location; |
| 135 | 135 |
| 136 // IE extensions | 136 // IE extensions |
| 137 [MeasureAs=DocumentCharset, TreatReturnedNullStringAs=Undefined, TreatNullAs
=NullString] attribute DOMString charset; | 137 [MeasureAs=DocumentCharset, TreatReturnedNullStringAs=Undefined, TreatNullAs
=NullString] attribute DOMString charset; |
| 138 [MeasureAs=DocumentCharset, TreatReturnedNullStringAs=Undefined] readonly at
tribute DOMString defaultCharset; | 138 [MeasureAs=DocumentCharset, TreatReturnedNullStringAs=Undefined] readonly at
tribute DOMString defaultCharset; |
| 139 [TreatReturnedNullStringAs=Undefined] readonly attribute DOMString readyStat
e; | 139 [TreatReturnedNullStringAs=Undefined] readonly attribute DOMString readyStat
e; |
| 140 | 140 |
| 141 Element elementFromPoint([Default=Undefined] optional long x, | 141 Element elementFromPoint([Default=Undefined] optional long x, |
| 142 [Default=Undefined] optional long y); | 142 [Default=Undefined] optional long y); |
| 143 Range caretRangeFromPoint([Default=Undefined] optional long x, | 143 Range caretRangeFromPoint([Default=Undefined] optional long x, |
| 144 [Default=Undefined] optional long y); | 144 [Default=Undefined] optional long y); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 attribute EventHandler onselectionchange; | 181 attribute EventHandler onselectionchange; |
| 182 attribute EventHandler onselectstart; | 182 attribute EventHandler onselectstart; |
| 183 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; | 183 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; |
| 184 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; | 184 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; |
| 185 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; | 185 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; |
| 186 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; | 186 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; |
| 187 attribute EventHandler onwebkitfullscreenchange; | 187 attribute EventHandler onwebkitfullscreenchange; |
| 188 attribute EventHandler onwebkitfullscreenerror; | 188 attribute EventHandler onwebkitfullscreenerror; |
| 189 attribute EventHandler onwebkitpointerlockchange; | 189 attribute EventHandler onwebkitpointerlockchange; |
| 190 attribute EventHandler onwebkitpointerlockerror; | 190 attribute EventHandler onwebkitpointerlockerror; |
| 191 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH
andler onwheel; | 191 [PerWorldBindings, LogActivity=SetterOnly] attribute EventHandler onwheel; |
| 192 | 192 |
| 193 [RuntimeEnabled=Touch] Touch createTouch([Default=Undefined] optional Window
window, | 193 [RuntimeEnabled=Touch] Touch createTouch([Default=Undefined] optional Window
window, |
| 194 [Default=Undefined] optional Even
tTarget target, | 194 [Default=Undefined] optional Even
tTarget target, |
| 195 [Default=Undefined] optional long
identifier, | 195 [Default=Undefined] optional long
identifier, |
| 196 [Default=Undefined] optional long
pageX, | 196 [Default=Undefined] optional long
pageX, |
| 197 [Default=Undefined] optional long
pageY, | 197 [Default=Undefined] optional long
pageY, |
| 198 [Default=Undefined] optional long
screenX, | 198 [Default=Undefined] optional long
screenX, |
| 199 [Default=Undefined] optional long
screenY, | 199 [Default=Undefined] optional long
screenY, |
| 200 [Default=Undefined] optional long
webkitRadiusX, | 200 [Default=Undefined] optional long
webkitRadiusX, |
| 201 [Default=Undefined] optional long
webkitRadiusY, | 201 [Default=Undefined] optional long
webkitRadiusY, |
| 202 [Default=Undefined] optional floa
t webkitRotationAngle, | 202 [Default=Undefined] optional floa
t webkitRotationAngle, |
| 203 [Default=Undefined] optional floa
t webkitForce); | 203 [Default=Undefined] optional floa
t webkitForce); |
| 204 [RuntimeEnabled=Touch] TouchList createTouchList(Touch... touches); | 204 [RuntimeEnabled=Touch] TouchList createTouchList(Touch... touches); |
| 205 | 205 |
| 206 [CallWith=NewScriptState, CustomElementCallbacks, RaisesException] CustomEle
mentConstructor registerElement(DOMString name, optional Dictionary options); | 206 [CallWith=NewScriptState, CustomElementCallbacks, RaisesException] CustomEle
mentConstructor registerElement(DOMString name, optional Dictionary options); |
| 207 [CustomElementCallbacks, PerWorldBindings, ActivityLogging=ForIsolatedWorlds
, RaisesException] Element createElement(DOMString localName, [TreatNullAs=NullS
tring] DOMString typeExtension); | 207 [CustomElementCallbacks, PerWorldBindings, LogActivity, RaisesException] Ele
ment createElement(DOMString localName, [TreatNullAs=NullString] DOMString typeE
xtension); |
| 208 [CustomElementCallbacks, PerWorldBindings, ActivityLogging=ForIsolatedWorlds
, RaisesException] Element createElementNS([TreatNullAs=NullString] DOMString na
mespaceURI, DOMString qualifiedName, | 208 [CustomElementCallbacks, PerWorldBindings, LogActivity, RaisesException] Ele
ment createElementNS([TreatNullAs=NullString] DOMString namespaceURI, DOMString
qualifiedName, |
| 209 [TreatNullAs=NullString] DOMString typeExtension); | 209 [TreatNullAs=NullString] DOMString typeExtension); |
| 210 | 210 |
| 211 // Page visibility API. | 211 // Page visibility API. |
| 212 readonly attribute DOMString visibilityState; | 212 readonly attribute DOMString visibilityState; |
| 213 readonly attribute boolean hidden; | 213 readonly attribute boolean hidden; |
| 214 | 214 |
| 215 // Deprecated prefixed page visibility API. | 215 // Deprecated prefixed page visibility API. |
| 216 // TODO(davidben): This is a property so attaching a deprecation warning res
ults in false positives when outputting | 216 // TODO(davidben): This is a property so attaching a deprecation warning res
ults in false positives when outputting |
| 217 // document in the console. It's possible http://crbug.com/43394 will resolv
e this. | 217 // document in the console. It's possible http://crbug.com/43394 will resolv
e this. |
| 218 [MeasureAs=PrefixedPageVisibility, ImplementedAs=visibilityState] readonly a
ttribute DOMString webkitVisibilityState; | 218 [MeasureAs=PrefixedPageVisibility, ImplementedAs=visibilityState] readonly a
ttribute DOMString webkitVisibilityState; |
| 219 [MeasureAs=PrefixedPageVisibility, ImplementedAs=hidden] readonly attribute
boolean webkitHidden; | 219 [MeasureAs=PrefixedPageVisibility, ImplementedAs=hidden] readonly attribute
boolean webkitHidden; |
| 220 | 220 |
| 221 readonly attribute HTMLScriptElement currentScript; | 221 readonly attribute HTMLScriptElement currentScript; |
| 222 }; | 222 }; |
| 223 | 223 |
| 224 Document implements GlobalEventHandlers; | 224 Document implements GlobalEventHandlers; |
| 225 Document implements ParentNode; | 225 Document implements ParentNode; |
| 226 | 226 |
| OLD | NEW |