google-closure-compiler 20250412.0.0-nightly → 20250413.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -30
- package/cli.js +3 -4
- package/externs/browser/decorators.js +276 -0
- package/externs/browser/deprecated.js +58 -0
- package/externs/browser/es6_proxy.js +143 -0
- package/externs/browser/fetchapi.js +449 -0
- package/externs/browser/fido.js +94 -0
- package/externs/browser/flash.js +226 -0
- package/externs/browser/gecko_css.js +126 -0
- package/externs/browser/gecko_dom.js +479 -0
- package/externs/browser/gecko_event.js +86 -0
- package/externs/browser/gecko_xml.js +73 -0
- package/externs/browser/google_legacy.js +31 -0
- package/externs/browser/html5.js +6647 -0
- package/externs/browser/ie_css.js +270 -0
- package/externs/browser/ie_dom.js +1232 -0
- package/externs/browser/ie_event.js +310 -0
- package/externs/browser/ie_vml.js +77 -0
- package/externs/browser/intersection_observer.js +178 -0
- package/externs/browser/intl.js +602 -0
- package/externs/browser/iphone.js +204 -0
- package/externs/browser/mediakeys.js +305 -0
- package/externs/browser/mediasource.js +155 -0
- package/externs/browser/nonstandard_anim_timing.js +97 -0
- package/externs/browser/nonstandard_audio.js +82 -0
- package/externs/browser/nonstandard_console.js +75 -0
- package/externs/browser/nonstandard_fileapi.js +1066 -0
- package/externs/browser/nonstandard_indexeddb.js +78 -0
- package/externs/browser/nonstandard_navigation_timing.js +38 -0
- package/externs/browser/nonstandard_selection.js +80 -0
- package/externs/browser/page_visibility.js +28 -0
- package/externs/browser/streamsapi.js +593 -0
- package/externs/browser/svg.js +10016 -0
- package/externs/browser/url.js +202 -0
- package/externs/browser/v8.js +134 -0
- package/externs/browser/w3c_abort.js +89 -0
- package/externs/browser/w3c_anim_timing.js +49 -0
- package/externs/browser/w3c_aria_mixin.js +286 -0
- package/externs/browser/w3c_audio.js +1660 -0
- package/externs/browser/w3c_batterystatus.js +85 -0
- package/externs/browser/w3c_clipboard.js +74 -0
- package/externs/browser/w3c_clipboardevent.js +47 -0
- package/externs/browser/w3c_composition_event.js +93 -0
- package/externs/browser/w3c_css.js +3790 -0
- package/externs/browser/w3c_css3d.js +199 -0
- package/externs/browser/w3c_device_sensor_event.js +122 -0
- package/externs/browser/w3c_dom1.js +1160 -0
- package/externs/browser/w3c_dom2.js +3151 -0
- package/externs/browser/w3c_dom3.js +555 -0
- package/externs/browser/w3c_dom4.js +289 -0
- package/externs/browser/w3c_elementtraversal.js +116 -0
- package/externs/browser/w3c_event.js +607 -0
- package/externs/browser/w3c_event3.js +77 -0
- package/externs/browser/w3c_eventsource.js +110 -0
- package/externs/browser/w3c_fileapi.js +302 -0
- package/externs/browser/w3c_gamepad.js +113 -0
- package/externs/browser/w3c_geolocation.js +130 -0
- package/externs/browser/w3c_geometry1.js +899 -0
- package/externs/browser/w3c_indexeddb.js +771 -0
- package/externs/browser/w3c_keyboardlock.js +47 -0
- package/externs/browser/w3c_mediacapabilities.js +206 -0
- package/externs/browser/w3c_midi.js +301 -0
- package/externs/browser/w3c_navigation.js +72 -0
- package/externs/browser/w3c_navigation_timing.js +437 -0
- package/externs/browser/w3c_netinfo.js +85 -0
- package/externs/browser/w3c_payment_request.js +401 -0
- package/externs/browser/w3c_permissions.js +112 -0
- package/externs/browser/w3c_permissions_policy.js +78 -0
- package/externs/browser/w3c_pointer_events.js +163 -0
- package/externs/browser/w3c_pointerlock.js +63 -0
- package/externs/browser/w3c_range.js +284 -0
- package/externs/browser/w3c_referrer_policy.js +36 -0
- package/externs/browser/w3c_requestidlecallback.js +76 -0
- package/externs/browser/w3c_rtc.js +3882 -0
- package/externs/browser/w3c_screen_orientation.js +53 -0
- package/externs/browser/w3c_screen_wake_lock.js +58 -0
- package/externs/browser/w3c_selection.js +209 -0
- package/externs/browser/w3c_selectors.js +113 -0
- package/externs/browser/w3c_serviceworker.js +739 -0
- package/externs/browser/w3c_speech.js +426 -0
- package/externs/browser/w3c_touch_event.js +296 -0
- package/externs/browser/w3c_trusted_types.js +142 -0
- package/externs/browser/w3c_vibration.js +38 -0
- package/externs/browser/w3c_webcodecs.js +1473 -0
- package/externs/browser/w3c_webcrypto.js +839 -0
- package/externs/browser/w3c_worklets.js +54 -0
- package/externs/browser/w3c_xml.js +533 -0
- package/externs/browser/web_animations.js +452 -0
- package/externs/browser/web_app_manifest.js +50 -0
- package/externs/browser/webassembly.js +223 -0
- package/externs/browser/webgl.js +3409 -0
- package/externs/browser/webgl2.js +2727 -0
- package/externs/browser/webgl2_compute.js +1609 -0
- package/externs/browser/webkit_css.js +456 -0
- package/externs/browser/webkit_dom.js +118 -0
- package/externs/browser/webkit_event.js +46 -0
- package/externs/browser/webkit_notifications.js +258 -0
- package/externs/browser/webkit_usercontent.js +55 -0
- package/externs/browser/weblocksapi.js +125 -0
- package/externs/browser/webstorage.js +171 -0
- package/externs/browser/whatwg_bitmap_context.js +37 -0
- package/externs/browser/whatwg_console.js +152 -0
- package/externs/browser/whatwg_encoding.js +99 -0
- package/externs/browser/whatwg_file_system.js +296 -0
- package/externs/browser/wicg_attribution_reporting.js +42 -0
- package/externs/browser/wicg_compression_stream.js +60 -0
- package/externs/browser/wicg_constructable_stylesheets.js +60 -0
- package/externs/browser/wicg_entries.js +169 -0
- package/externs/browser/wicg_file_handling.js +41 -0
- package/externs/browser/wicg_file_system_access.js +191 -0
- package/externs/browser/wicg_floc.js +41 -0
- package/externs/browser/wicg_ink.js +89 -0
- package/externs/browser/wicg_resizeobserver.js +100 -0
- package/externs/browser/wicg_scheduler.js +62 -0
- package/externs/browser/wicg_trust_token.js +89 -0
- package/externs/browser/wicg_uach.js +100 -0
- package/externs/browser/window.js +190 -0
- package/externs/es3.js +2716 -0
- package/externs/es5.js +284 -0
- package/externs/es6.js +2554 -0
- package/externs/es6_collections.js +323 -0
- package/index.js +13 -16
- package/lib/grunt/index.js +71 -92
- package/lib/grunt/vinyl-stream.js +12 -18
- package/lib/gulp/concat-to-json.js +30 -18
- package/lib/gulp/index.js +174 -181
- package/lib/gulp/json-to-vinyl.js +8 -8
- package/lib/node/{closure-compiler.js → index.js} +27 -51
- package/lib/utils.js +16 -14
- package/package.json +19 -16
- package/lib/logger.js +0 -89
|
@@ -0,0 +1,555 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2008 The Closure Compiler Authors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @fileoverview Definitions for W3C's DOM Level 3 specification.
|
|
19
|
+
* This file depends on w3c_dom2.js.
|
|
20
|
+
* The whole file has been fully type annotated.
|
|
21
|
+
* Created from
|
|
22
|
+
* http://www.w3.org/TR/DOM-Level-3-Core/ecma-script-binding.html
|
|
23
|
+
*
|
|
24
|
+
* @externs
|
|
25
|
+
* @author stevey@google.com (Steve Yegge)
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @type {number}
|
|
30
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-258A00AF
|
|
31
|
+
*/
|
|
32
|
+
DOMException.prototype.code;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @const {number}
|
|
36
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-258A00AF
|
|
37
|
+
*/
|
|
38
|
+
DOMException.VALIDATION_ERR;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @const {number}
|
|
42
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-258A00AF
|
|
43
|
+
*/
|
|
44
|
+
DOMException.TYPE_MISMATCH_ERR;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @constructor
|
|
48
|
+
* @implements {IArrayLike<string>}
|
|
49
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMStringList
|
|
50
|
+
*/
|
|
51
|
+
function DOMStringList() {}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMStringList-length
|
|
56
|
+
*/
|
|
57
|
+
DOMStringList.prototype.length;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @param {string} str
|
|
61
|
+
* @return {boolean}
|
|
62
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMStringList-contains
|
|
63
|
+
* @nosideeffects
|
|
64
|
+
*/
|
|
65
|
+
DOMStringList.prototype.contains = function(str) {};
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @param {number} index
|
|
69
|
+
* @return {string}
|
|
70
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMStringList-item
|
|
71
|
+
* @nosideeffects
|
|
72
|
+
*/
|
|
73
|
+
DOMStringList.prototype.item = function(index) {};
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @constructor
|
|
77
|
+
* @implements {IArrayLike<!DOMImplementation>}
|
|
78
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMImplementationList
|
|
79
|
+
*/
|
|
80
|
+
function DOMImplementationList() {}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @type {number}
|
|
84
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMImplementationList-length
|
|
85
|
+
*/
|
|
86
|
+
DOMImplementationList.prototype.length;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* @param {number} index
|
|
90
|
+
* @return {DOMImplementation}
|
|
91
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMImplementationList-item
|
|
92
|
+
* @nosideeffects
|
|
93
|
+
*/
|
|
94
|
+
DOMImplementationList.prototype.item = function(index) {};
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @constructor
|
|
98
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMImplementationSource
|
|
99
|
+
*/
|
|
100
|
+
function DOMImplementationSource() {}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @param {?string} namespaceURI
|
|
104
|
+
* @param {string} publicId
|
|
105
|
+
* @param {DocumentType=} doctype
|
|
106
|
+
* @return {Document}
|
|
107
|
+
* @see https://dom.spec.whatwg.org/#ref-for-dom-domimplementation-createdocument%E2%91%A0
|
|
108
|
+
* @nosideeffects
|
|
109
|
+
*/
|
|
110
|
+
DOMImplementation.prototype.createDocument = function(namespaceURI, publicId, doctype) {};
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* @param {string} qualifiedName
|
|
114
|
+
* @param {string} publicId
|
|
115
|
+
* @param {string} systemId
|
|
116
|
+
* @return {DocumentType}
|
|
117
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Level-2-Core-DOM-createDocType
|
|
118
|
+
* @nosideeffects
|
|
119
|
+
*/
|
|
120
|
+
DOMImplementation.prototype.createDocumentType = function(qualifiedName, publicId, systemId) {};
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @param {string} features
|
|
124
|
+
* @return {DOMImplementation}
|
|
125
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-getDOMImpl
|
|
126
|
+
* @nosideeffects
|
|
127
|
+
*/
|
|
128
|
+
DOMImplementationSource.prototype.getDOMImplementation = function(features) {};
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @param {string} features
|
|
132
|
+
* @return {DOMImplementationList}
|
|
133
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-getDOMImpls
|
|
134
|
+
* @nosideeffects
|
|
135
|
+
*/
|
|
136
|
+
DOMImplementationSource.prototype.getDOMImplementationList = function(features) {};
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* @param {Node} externalNode
|
|
140
|
+
* @return {Node}
|
|
141
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Document3-adoptNode
|
|
142
|
+
*/
|
|
143
|
+
Document.prototype.adoptNode = function(externalNode) {};
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* @type {string}
|
|
147
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Document3-documentURI
|
|
148
|
+
*/
|
|
149
|
+
Document.prototype.documentURI;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* @type {string}
|
|
153
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Document3-inputEncoding
|
|
154
|
+
*/
|
|
155
|
+
Document.prototype.inputEncoding;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* @type {string}
|
|
159
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Document3-encoding
|
|
160
|
+
*/
|
|
161
|
+
Document.prototype.xmlEncoding;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* @type {boolean}
|
|
165
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Document3-standalone
|
|
166
|
+
*/
|
|
167
|
+
Document.prototype.xmlStandalone;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* @type {string}
|
|
171
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Document3-version
|
|
172
|
+
*/
|
|
173
|
+
Document.prototype.xmlVersion;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* @type {?string}
|
|
177
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-baseURI
|
|
178
|
+
*/
|
|
179
|
+
Node.prototype.baseURI;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* @type {string}
|
|
183
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-NodeNSLocalN
|
|
184
|
+
*/
|
|
185
|
+
Node.prototype.localName;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* @type {string}
|
|
189
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-NodeNSname
|
|
190
|
+
*/
|
|
191
|
+
Node.prototype.namespaceURI;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* @type {string}
|
|
195
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-NodeNSPrefix
|
|
196
|
+
*/
|
|
197
|
+
Node.prototype.prefix;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* @type {string}
|
|
201
|
+
* @implicitCast
|
|
202
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-textContent
|
|
203
|
+
*/
|
|
204
|
+
Node.prototype.textContent;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* @const {number}
|
|
208
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node-DOCUMENT_POSITION_DISCONNECTED
|
|
209
|
+
*/
|
|
210
|
+
Node.DOCUMENT_POSITION_DISCONNECTED;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* @const {number}
|
|
214
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node-DOCUMENT_POSITION_PRECEDING
|
|
215
|
+
*/
|
|
216
|
+
Node.DOCUMENT_POSITION_PRECEDING;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* @const {number}
|
|
220
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node-DOCUMENT_POSITION_FOLLOWING
|
|
221
|
+
*/
|
|
222
|
+
Node.DOCUMENT_POSITION_FOLLOWING;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* @const {number}
|
|
226
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node-DOCUMENT_POSITION_CONTAINS
|
|
227
|
+
*/
|
|
228
|
+
Node.DOCUMENT_POSITION_CONTAINS;
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* @const {number}
|
|
232
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node-DOCUMENT_POSITION_CONTAINED_BY
|
|
233
|
+
*/
|
|
234
|
+
Node.DOCUMENT_POSITION_CONTAINED_BY;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* @const {number}
|
|
238
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node-DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
|
|
239
|
+
*/
|
|
240
|
+
Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* @param {Node} other
|
|
244
|
+
* @return {number}
|
|
245
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-compareDocumentPosition
|
|
246
|
+
* @nosideeffects
|
|
247
|
+
*/
|
|
248
|
+
Node.prototype.compareDocumentPosition = function(other) {};
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* @param {string} feature
|
|
252
|
+
* @param {string} version
|
|
253
|
+
* @return {Object}
|
|
254
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-getFeature
|
|
255
|
+
* @nosideeffects
|
|
256
|
+
*/
|
|
257
|
+
Node.prototype.getFeature = function(feature, version) {};
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* @param {string} key
|
|
261
|
+
* @return {Object}
|
|
262
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-getUserData
|
|
263
|
+
* @nosideeffects
|
|
264
|
+
*/
|
|
265
|
+
Node.prototype.getUserData = function(key) {};
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* @return {boolean}
|
|
269
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-NodeHasAttrs
|
|
270
|
+
* @nosideeffects
|
|
271
|
+
*/
|
|
272
|
+
Node.prototype.hasAttributes = function() {};
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* @param {?string} namespaceURI
|
|
276
|
+
* @return {boolean}
|
|
277
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-isDefaultNamespace
|
|
278
|
+
* @nosideeffects
|
|
279
|
+
*/
|
|
280
|
+
Node.prototype.isDefaultNamespace = function(namespaceURI) {};
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* @param {Node} arg
|
|
284
|
+
* @return {boolean}
|
|
285
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-isEqualNode
|
|
286
|
+
* @nosideeffects
|
|
287
|
+
*/
|
|
288
|
+
Node.prototype.isEqualNode = function(arg) {};
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* @param {Node} other
|
|
292
|
+
* @return {boolean}
|
|
293
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-isSameNode
|
|
294
|
+
* @nosideeffects
|
|
295
|
+
*/
|
|
296
|
+
Node.prototype.isSameNode = function(other) {};
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* @param {string} prefix
|
|
300
|
+
* @return {string}
|
|
301
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-lookupNamespaceURI
|
|
302
|
+
* @nosideeffects
|
|
303
|
+
*/
|
|
304
|
+
Node.prototype.lookupNamespaceURI = function(prefix) {};
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* @param {?string} namespaceURI
|
|
308
|
+
* @return {string}
|
|
309
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-lookupNamespacePrefix
|
|
310
|
+
* @nosideeffects
|
|
311
|
+
*/
|
|
312
|
+
Node.prototype.lookupPrefix = function(namespaceURI) {};
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* @return {undefined}
|
|
316
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-normalize
|
|
317
|
+
*/
|
|
318
|
+
Node.prototype.normalize = function() {};
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* @param {string} query
|
|
322
|
+
* @return {?Element}
|
|
323
|
+
* @see http://www.w3.org/TR/selectors-api/#queryselector
|
|
324
|
+
* @nosideeffects
|
|
325
|
+
*/
|
|
326
|
+
Node.prototype.querySelector = function(query) {};
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* @param {string} query
|
|
330
|
+
* @return {!NodeList<!Element>}
|
|
331
|
+
* @see http://www.w3.org/TR/selectors-api/#queryselectorall
|
|
332
|
+
* @nosideeffects
|
|
333
|
+
*/
|
|
334
|
+
Node.prototype.querySelectorAll = function(query) {};
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* @type {Element}
|
|
338
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Attr-ownerElement
|
|
339
|
+
*/
|
|
340
|
+
Attr.prototype.ownerElement;
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* @type {boolean}
|
|
344
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Attr-isId
|
|
345
|
+
*/
|
|
346
|
+
Attr.prototype.isId;
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* @param {?string} namespaceURI
|
|
350
|
+
* @param {string} localName
|
|
351
|
+
* @return {Attr}
|
|
352
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-ElGetAtNodeNS
|
|
353
|
+
* @nosideeffects
|
|
354
|
+
*/
|
|
355
|
+
Element.prototype.getAttributeNodeNS = function(namespaceURI, localName) {};
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* @param {?string} namespaceURI
|
|
359
|
+
* @param {string} localName
|
|
360
|
+
* @return {string}
|
|
361
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-ElGetAttrNS
|
|
362
|
+
* @nosideeffects
|
|
363
|
+
*/
|
|
364
|
+
Element.prototype.getAttributeNS = function(namespaceURI, localName) {};
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* @param {?string} namespaceURI
|
|
368
|
+
* @param {string} localName
|
|
369
|
+
* @return {!NodeList<!Element>}
|
|
370
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-A6C90942
|
|
371
|
+
* @nosideeffects
|
|
372
|
+
*/
|
|
373
|
+
Element.prototype.getElementsByTagNameNS = function(namespaceURI, localName) {};
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* @param {string} name
|
|
377
|
+
* @return {boolean}
|
|
378
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-ElHasAttr
|
|
379
|
+
* @nosideeffects
|
|
380
|
+
*/
|
|
381
|
+
Element.prototype.hasAttribute = function(name) {};
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* @param {?string} namespaceURI
|
|
385
|
+
* @param {string} localName
|
|
386
|
+
* @return {boolean}
|
|
387
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-ElHasAttrNS
|
|
388
|
+
* @nosideeffects
|
|
389
|
+
*/
|
|
390
|
+
Element.prototype.hasAttributeNS = function(namespaceURI, localName) {};
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* @param {?string} namespaceURI
|
|
394
|
+
* @param {string} localName
|
|
395
|
+
* @return {undefined}
|
|
396
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-ElRemAtNS
|
|
397
|
+
*/
|
|
398
|
+
Element.prototype.removeAttributeNS = function(namespaceURI, localName) {};
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* @param {Attr} newAttr
|
|
402
|
+
* @return {Attr}
|
|
403
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-ElSetAtNodeNS
|
|
404
|
+
*/
|
|
405
|
+
Element.prototype.setAttributeNodeNS = function(newAttr) {};
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* @param {?string} namespaceURI
|
|
409
|
+
* @param {string} qualifiedName
|
|
410
|
+
* @param {string|number|boolean} value Values are converted to strings with
|
|
411
|
+
* ToString, so we accept number and boolean since both convert easily to
|
|
412
|
+
* strings.
|
|
413
|
+
* @return {undefined}
|
|
414
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-ElSetAttrNS
|
|
415
|
+
*/
|
|
416
|
+
Element.prototype.setAttributeNS = function(namespaceURI, qualifiedName, value) {};
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* @type {string}
|
|
420
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Text3-wholeText
|
|
421
|
+
*/
|
|
422
|
+
Text.prototype.wholeText;
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* @constructor
|
|
426
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ERROR-Interfaces-DOMError
|
|
427
|
+
*/
|
|
428
|
+
function DOMError() {}
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* @type {DOMLocator}
|
|
432
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ERROR-DOMError-location
|
|
433
|
+
*/
|
|
434
|
+
DOMError.prototype.location;
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* @type {string}
|
|
438
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ERROR-DOMError-message
|
|
439
|
+
*/
|
|
440
|
+
DOMError.prototype.message;
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* @type {Object}
|
|
444
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ERROR-DOMError-relatedData
|
|
445
|
+
*/
|
|
446
|
+
DOMError.prototype.relatedData;
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* @type {Object}
|
|
450
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ERROR-DOMError-relatedException
|
|
451
|
+
*/
|
|
452
|
+
DOMError.prototype.relatedException;
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* @const {number}
|
|
456
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ERROR-DOMError-severity-warning
|
|
457
|
+
*/
|
|
458
|
+
DOMError.SEVERITY_WARNING;
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* @const {number}
|
|
462
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ERROR-DOMError-severity-error
|
|
463
|
+
*/
|
|
464
|
+
DOMError.SEVERITY_ERROR;
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* @const {number}
|
|
468
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ERROR-DOMError-severity-fatal-error
|
|
469
|
+
*/
|
|
470
|
+
DOMError.SEVERITY_FATAL_ERROR;
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* @type {number}
|
|
474
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ERROR-DOMError-severity
|
|
475
|
+
*/
|
|
476
|
+
DOMError.prototype.severity;
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* @type {string}
|
|
480
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ERROR-DOMError-type
|
|
481
|
+
*/
|
|
482
|
+
DOMError.prototype.type;
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* @type {string}
|
|
486
|
+
* @see http://www.w3.org/TR/dom/#domerror
|
|
487
|
+
*/
|
|
488
|
+
DOMError.prototype.name;
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* @constructor
|
|
492
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ERROR-Interfaces-DOMErrorHandler
|
|
493
|
+
*/
|
|
494
|
+
function DOMErrorHandler() {}
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
* @param {DOMError} error
|
|
498
|
+
* @return {boolean}
|
|
499
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-ERRORS-DOMErrorHandler-handleError
|
|
500
|
+
*/
|
|
501
|
+
DOMErrorHandler.prototype.handleError = function(error) {};
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* @constructor
|
|
505
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Interfaces-DOMLocator
|
|
506
|
+
*/
|
|
507
|
+
function DOMLocator() {}
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* @type {number}
|
|
511
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMLocator-byteOffset
|
|
512
|
+
*/
|
|
513
|
+
DOMLocator.prototype.byteOffset;
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* @type {number}
|
|
517
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMLocator-column-number
|
|
518
|
+
*/
|
|
519
|
+
DOMLocator.prototype.columnNumber;
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* @type {number}
|
|
523
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMLocator-line-number
|
|
524
|
+
*/
|
|
525
|
+
DOMLocator.prototype.lineNumber;
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* @type {Node}
|
|
529
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMLocator-node
|
|
530
|
+
*/
|
|
531
|
+
DOMLocator.prototype.relatedNode;
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* @type {string}
|
|
535
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMLocator-uri
|
|
536
|
+
*/
|
|
537
|
+
DOMLocator.prototype.uri;
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* @type {number}
|
|
541
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMLocator-utf16Offset
|
|
542
|
+
*/
|
|
543
|
+
DOMLocator.prototype.utf16Offset;
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* @type {string}
|
|
547
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-Core-DocType-publicId
|
|
548
|
+
*/
|
|
549
|
+
DocumentType.prototype.publicId;
|
|
550
|
+
|
|
551
|
+
/**
|
|
552
|
+
* @type {string}
|
|
553
|
+
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-Core-DocType-systemId
|
|
554
|
+
*/
|
|
555
|
+
DocumentType.prototype.systemId;
|