| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 77 |
| 78 // FIXME: CDATASection has been removed from the spec. crbug.com/437205 | 78 // FIXME: CDATASection has been removed from the spec. crbug.com/437205 |
| 79 [RaisesException, MeasureAs=DocumentCreateCDATASection] CDATASection createC
DATASection(DOMString data); | 79 [RaisesException, MeasureAs=DocumentCreateCDATASection] CDATASection createC
DATASection(DOMString data); |
| 80 | 80 |
| 81 // FIXME: xmlEncoding/xmlVersion/xmlStandalone have been removed from the sp
ec. | 81 // FIXME: xmlEncoding/xmlVersion/xmlStandalone have been removed from the sp
ec. |
| 82 [MeasureAs=DocumentXMLEncoding] readonly attribute DOMString? xmlEncoding; | 82 [MeasureAs=DocumentXMLEncoding] readonly attribute DOMString? xmlEncoding; |
| 83 [RaisesException=Setter, MeasureAs=DocumentXMLVersion] attribute DOMString?
xmlVersion; | 83 [RaisesException=Setter, MeasureAs=DocumentXMLVersion] attribute DOMString?
xmlVersion; |
| 84 [RaisesException=Setter, MeasureAs=DocumentXMLStandalone] attribute boolean
xmlStandalone; | 84 [RaisesException=Setter, MeasureAs=DocumentXMLStandalone] attribute boolean
xmlStandalone; |
| 85 | 85 |
| 86 // https://dom.spec.whatwg.org/#interface-nonelementparentnode | 86 // https://dom.spec.whatwg.org/#interface-nonelementparentnode |
| 87 | |
| 88 [PerWorldBindings] Element? getElementById(DOMString elementId); | 87 [PerWorldBindings] Element? getElementById(DOMString elementId); |
| 89 | 88 |
| 89 // HTML |
| 90 // https://html.spec.whatwg.org/#the-document-object | 90 // https://html.spec.whatwg.org/#the-document-object |
| 91 | 91 |
| 92 // resource metadata management | 92 // resource metadata management |
| 93 [PutForwards=href, Unforgeable] readonly attribute Location? location; | 93 [PutForwards=href, Unforgeable] readonly attribute Location? location; |
| 94 // FIXME: domain should not have [TreatNullAs=NullString]. | 94 // FIXME: domain should not have [TreatNullAs=NullString]. |
| 95 [TreatNullAs=NullString, RaisesException=Setter] attribute DOMString domain; | 95 [TreatNullAs=NullString, RaisesException=Setter] attribute DOMString domain; |
| 96 readonly attribute DOMString referrer; | 96 readonly attribute DOMString referrer; |
| 97 // FIXME: cookie should not have [TreatNullAs=NullString]. | 97 // FIXME: cookie should not have [TreatNullAs=NullString]. |
| 98 [TreatNullAs=NullString, RaisesException] attribute DOMString cookie; | 98 [TreatNullAs=NullString, RaisesException] attribute DOMString cookie; |
| 99 readonly attribute DOMString lastModified; | 99 readonly attribute DOMString lastModified; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 129 boolean queryCommandEnabled(DOMString commandId); | 129 boolean queryCommandEnabled(DOMString commandId); |
| 130 boolean queryCommandIndeterm(DOMString commandId); | 130 boolean queryCommandIndeterm(DOMString commandId); |
| 131 boolean queryCommandState(DOMString commandId); | 131 boolean queryCommandState(DOMString commandId); |
| 132 boolean queryCommandSupported(DOMString commandId); | 132 boolean queryCommandSupported(DOMString commandId); |
| 133 DOMString queryCommandValue(DOMString commandId); | 133 DOMString queryCommandValue(DOMString commandId); |
| 134 | 134 |
| 135 // special event handler IDL attributes that only apply to Document objects | 135 // special event handler IDL attributes that only apply to Document objects |
| 136 // FIXME: onreadystatechange should use [LenientThis]. | 136 // FIXME: onreadystatechange should use [LenientThis]. |
| 137 attribute EventHandler onreadystatechange; | 137 attribute EventHandler onreadystatechange; |
| 138 | 138 |
| 139 // HTML obsolete features |
| 139 // https://html.spec.whatwg.org/#Document-partial | 140 // https://html.spec.whatwg.org/#Document-partial |
| 140 | 141 |
| 141 // FIXME: *Color are on HTMLDocument. | 142 // FIXME: *Color are on HTMLDocument. |
| 142 | 143 |
| 143 readonly attribute HTMLCollection anchors; | 144 readonly attribute HTMLCollection anchors; |
| 144 readonly attribute HTMLCollection applets; | 145 readonly attribute HTMLCollection applets; |
| 145 | 146 |
| 146 // FIXME: clear(), captureEvents(), releaseEvents() and all are on HTMLDocum
ent. | 147 // FIXME: clear(), captureEvents(), releaseEvents() and all are on HTMLDocum
ent. |
| 147 | 148 |
| 149 // CSS Object Model (CSSOM) |
| 148 // http://dev.w3.org/csswg/cssom/#extensions-to-the-document-interface | 150 // http://dev.w3.org/csswg/cssom/#extensions-to-the-document-interface |
| 149 readonly attribute StyleSheetList styleSheets; | 151 readonly attribute StyleSheetList styleSheets; |
| 150 attribute DOMString? selectedStylesheetSet; | 152 attribute DOMString? selectedStylesheetSet; |
| 151 readonly attribute DOMString? preferredStylesheetSet; | 153 readonly attribute DOMString? preferredStylesheetSet; |
| 152 | 154 |
| 155 // CSSOM View Module |
| 153 // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-document-interface | 156 // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-document-interface |
| 154 // FIXME: The x and y arguments should be of type double. | 157 // FIXME: The x and y arguments should be of type double. |
| 155 Element? elementFromPoint(long x, long y); | 158 Element? elementFromPoint(long x, long y); |
| 156 sequence<Element> elementsFromPoint(long x, long y); | 159 sequence<Element> elementsFromPoint(long x, long y); |
| 157 | 160 |
| 161 // Selection API |
| 158 // http://w3c.github.io/selection-api/#extensions-to-document-interface | 162 // http://w3c.github.io/selection-api/#extensions-to-document-interface |
| 159 Selection? getSelection(); | 163 Selection? getSelection(); |
| 160 | 164 |
| 165 // Pointer Lock |
| 161 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#extensions
-to-the-document-interface | 166 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#extensions
-to-the-document-interface |
| 162 attribute EventHandler onpointerlockchange; | 167 attribute EventHandler onpointerlockchange; |
| 163 attribute EventHandler onpointerlockerror; | 168 attribute EventHandler onpointerlockerror; |
| 164 [MeasureAs=DocumentPointerLockElement] readonly attribute Element? pointerLo
ckElement; | 169 [MeasureAs=DocumentPointerLockElement] readonly attribute Element? pointerLo
ckElement; |
| 165 [MeasureAs=DocumentExitPointerLock] void exitPointerLock(); | 170 [MeasureAs=DocumentExitPointerLock] void exitPointerLock(); |
| 166 | 171 |
| 172 // Touch Events |
| 167 // http://www.w3.org/TR/touch-events/#extensions-to-the-document-interface | 173 // http://www.w3.org/TR/touch-events/#extensions-to-the-document-interface |
| 168 // FIXME: The arguments should not be optional. | 174 // FIXME: The arguments should not be optional. |
| 169 // FIXME: The webkit-prefixed arguments are not in the spec. | 175 // FIXME: The webkit-prefixed arguments are not in the spec. |
| 170 [RuntimeEnabled=Touch] Touch createTouch([Default=Undefined] optional Window
window, | 176 [RuntimeEnabled=Touch] Touch createTouch([Default=Undefined] optional Window
window, |
| 171 [Default=Undefined] optional EventT
arget target, | 177 [Default=Undefined] optional EventT
arget target, |
| 172 [Default=Undefined] optional long i
dentifier, | 178 [Default=Undefined] optional long i
dentifier, |
| 173 [Default=Undefined] optional unrest
ricted double pageX, | 179 [Default=Undefined] optional unrest
ricted double pageX, |
| 174 [Default=Undefined] optional unrest
ricted double pageY, | 180 [Default=Undefined] optional unrest
ricted double pageY, |
| 175 [Default=Undefined] optional unrest
ricted double screenX, | 181 [Default=Undefined] optional unrest
ricted double screenX, |
| 176 [Default=Undefined] optional unrest
ricted double screenY, | 182 [Default=Undefined] optional unrest
ricted double screenY, |
| 177 [Default=Undefined] optional unrest
ricted double webkitRadiusX, | 183 [Default=Undefined] optional unrest
ricted double webkitRadiusX, |
| 178 [Default=Undefined] optional unrest
ricted double webkitRadiusY, | 184 [Default=Undefined] optional unrest
ricted double webkitRadiusY, |
| 179 [Default=Undefined] optional unrest
ricted float webkitRotationAngle, | 185 [Default=Undefined] optional unrest
ricted float webkitRotationAngle, |
| 180 [Default=Undefined] optional unrest
ricted float webkitForce); | 186 [Default=Undefined] optional unrest
ricted float webkitForce); |
| 181 [RuntimeEnabled=Touch] TouchList createTouchList(Touch... touches); | 187 [RuntimeEnabled=Touch] TouchList createTouchList(Touch... touches); |
| 182 | 188 |
| 183 // FIXME: The spec doesn't define these event handler attributes. | 189 // FIXME: The spec doesn't define these event handler attributes. |
| 184 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; | 190 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; |
| 185 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; | 191 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; |
| 186 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; | 192 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; |
| 187 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; | 193 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; |
| 188 | 194 |
| 195 // Custom Elements |
| 189 // http://w3c.github.io/webcomponents/spec/custom/#extensions-to-document-in
terface-to-register | 196 // http://w3c.github.io/webcomponents/spec/custom/#extensions-to-document-in
terface-to-register |
| 190 // FIXME: The registerElement return type should be Function. | 197 // FIXME: The registerElement return type should be Function. |
| 191 [CallWith=ScriptState, CustomElementCallbacks, RaisesException, MeasureAs=Do
cumentRegisterElement] CustomElementConstructor registerElement(DOMString type,
optional ElementRegistrationOptions options); | 198 [CallWith=ScriptState, CustomElementCallbacks, RaisesException, MeasureAs=Do
cumentRegisterElement] CustomElementConstructor registerElement(DOMString type,
optional ElementRegistrationOptions options); |
| 192 | |
| 193 // http://w3c.github.io/webcomponents/spec/custom/#extensions-to-document-in
terface-to-instantiate | 199 // http://w3c.github.io/webcomponents/spec/custom/#extensions-to-document-in
terface-to-instantiate |
| 194 // FIXME: The typeExtension arguments should not be nullable. | 200 // FIXME: The typeExtension arguments should not be nullable. |
| 195 [CustomElementCallbacks, PerWorldBindings, RaisesException] Element createEl
ement(DOMString localName, DOMString? typeExtension); | 201 [CustomElementCallbacks, PerWorldBindings, RaisesException] Element createEl
ement(DOMString localName, DOMString? typeExtension); |
| 196 [CustomElementCallbacks, RaisesException] Element createElementNS(DOMString?
namespaceURI, DOMString qualifiedName, DOMString? typeExtension); | 202 [CustomElementCallbacks, RaisesException] Element createElementNS(DOMString?
namespaceURI, DOMString qualifiedName, DOMString? typeExtension); |
| 197 | 203 |
| 204 // Page Visibility |
| 198 // http://www.w3.org/TR/page-visibility/#sec-document-interface | 205 // http://www.w3.org/TR/page-visibility/#sec-document-interface |
| 199 readonly attribute boolean hidden; | 206 readonly attribute boolean hidden; |
| 200 readonly attribute VisibilityState visibilityState; | 207 readonly attribute VisibilityState visibilityState; |
| 201 | 208 |
| 202 // Non-standard APIs | 209 // Non-standard APIs |
| 203 [MeasureAs=DocumentGetOverrideStyle] CSSStyleDeclaration getOverrideStyle(); | 210 [MeasureAs=DocumentGetOverrideStyle] CSSStyleDeclaration getOverrideStyle(); |
| 204 [MeasureAs=DocumentCharset, TreatReturnedNullStringAs=Undefined, TreatNullAs
=NullString] attribute DOMString charset; | 211 [MeasureAs=DocumentCharset, TreatReturnedNullStringAs=Undefined, TreatNullAs
=NullString] attribute DOMString charset; |
| 205 [MeasureAs=DocumentDefaultCharset, TreatReturnedNullStringAs=Undefined] read
only attribute DOMString defaultCharset; | 212 [MeasureAs=DocumentDefaultCharset, TreatReturnedNullStringAs=Undefined] read
only attribute DOMString defaultCharset; |
| 206 [MeasureAs=DocumentCaretRangeFromPoint] Range caretRangeFromPoint([Default=U
ndefined] optional long x, [Default=Undefined] optional long y); | 213 [MeasureAs=DocumentCaretRangeFromPoint] Range caretRangeFromPoint([Default=U
ndefined] optional long x, [Default=Undefined] optional long y); |
| 207 [MeasureAs=DocumentGetCSSCanvasContext] RenderingContext getCSSCanvasContext
(DOMString contextId, DOMString name, long width, long height); | 214 [MeasureAs=DocumentGetCSSCanvasContext] RenderingContext getCSSCanvasContext
(DOMString contextId, DOMString name, long width, long height); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 221 attribute EventHandler onpaste; | 228 attribute EventHandler onpaste; |
| 222 attribute EventHandler onsearch; | 229 attribute EventHandler onsearch; |
| 223 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa
ndler onsecuritypolicyviolation; | 230 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa
ndler onsecuritypolicyviolation; |
| 224 attribute EventHandler onselectionchange; | 231 attribute EventHandler onselectionchange; |
| 225 attribute EventHandler onselectstart; | 232 attribute EventHandler onselectstart; |
| 226 attribute EventHandler onwheel; | 233 attribute EventHandler onwheel; |
| 227 }; | 234 }; |
| 228 | 235 |
| 229 Document implements GlobalEventHandlers; | 236 Document implements GlobalEventHandlers; |
| 230 Document implements ParentNode; | 237 Document implements ParentNode; |
| OLD | NEW |