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,289 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2016 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 DOM4 specification. This file depends on
|
|
19
|
+
* w3c_dom3.js. The whole file has been fully type annotated. Created from
|
|
20
|
+
* https://www.w3.org/TR/domcore/.
|
|
21
|
+
*
|
|
22
|
+
* @externs
|
|
23
|
+
* @author zhoumotongxue008@gmail.com (Michael Zhou)
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @typedef {?(DocumentType|Element|CharacterData)}
|
|
28
|
+
* @see https://www.w3.org/TR/domcore/#interface-childnode
|
|
29
|
+
*/
|
|
30
|
+
var ChildNode;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @return {undefined}
|
|
34
|
+
* @see https://www.w3.org/TR/domcore/#dom-childnode-remove
|
|
35
|
+
*/
|
|
36
|
+
DocumentType.prototype.remove = function() {};
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @return {undefined}
|
|
40
|
+
* @see https://www.w3.org/TR/domcore/#dom-childnode-remove
|
|
41
|
+
*/
|
|
42
|
+
Element.prototype.remove = function() {};
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @return {undefined}
|
|
46
|
+
* @see https://www.w3.org/TR/domcore/#dom-childnode-remove
|
|
47
|
+
*/
|
|
48
|
+
CharacterData.prototype.remove = function() {};
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @param {...(!Node|string)} nodes
|
|
52
|
+
* @return {undefined}
|
|
53
|
+
* @see https://dom.spec.whatwg.org/#dom-childnode-replacewith
|
|
54
|
+
*/
|
|
55
|
+
DocumentType.prototype.replaceWith = function(nodes) {};
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @const {string}
|
|
59
|
+
* @see https://www.w3.org/TR/2015/REC-dom-20151119/#sec-domerror
|
|
60
|
+
*/
|
|
61
|
+
DOMException.prototype.name;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @const {string}
|
|
65
|
+
* @see https://www.w3.org/TR/2015/REC-dom-20151119/#sec-domerror
|
|
66
|
+
*/
|
|
67
|
+
DOMException.prototype.message;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @const {number}
|
|
71
|
+
* @see https://www.w3.org/TR/2015/REC-dom-20151119/#dfn-error-names-table
|
|
72
|
+
*/
|
|
73
|
+
DOMException.SECURITY_ERR;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @const {number}
|
|
77
|
+
* @see https://www.w3.org/TR/2015/REC-dom-20151119/#dfn-error-names-table
|
|
78
|
+
*/
|
|
79
|
+
DOMException.NETWORK_ERR;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @const {number}
|
|
83
|
+
* @see https://www.w3.org/TR/2015/REC-dom-20151119/#dfn-error-names-table
|
|
84
|
+
*/
|
|
85
|
+
DOMException.ABORT_ERR;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* @const {number}
|
|
89
|
+
* @see https://www.w3.org/TR/2015/REC-dom-20151119/#dfn-error-names-table
|
|
90
|
+
*/
|
|
91
|
+
DOMException.URL_MISMATCH_ERR;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* @const {number}
|
|
95
|
+
* @see https://www.w3.org/TR/2015/REC-dom-20151119/#dfn-error-names-table
|
|
96
|
+
*/
|
|
97
|
+
DOMException.QUOTA_EXCEEDED_ERR;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @const {number}
|
|
101
|
+
* @see https://www.w3.org/TR/2015/REC-dom-20151119/#dfn-error-names-table
|
|
102
|
+
*/
|
|
103
|
+
DOMException.TIMEOUT_ERR;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @const {number}
|
|
107
|
+
* @see https://www.w3.org/TR/2015/REC-dom-20151119/#dfn-error-names-table
|
|
108
|
+
*/
|
|
109
|
+
DOMException.INVALID_NODE_TYPE_ERR;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* @const {number}
|
|
113
|
+
* @see https://www.w3.org/TR/2015/REC-dom-20151119/#dfn-error-names-table
|
|
114
|
+
*/
|
|
115
|
+
DOMException.DATA_CLONE_ERR;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* @param {...(!Node|string)} nodes
|
|
119
|
+
* @return {undefined}
|
|
120
|
+
* @see https://dom.spec.whatwg.org/#dom-childnode-replacewith
|
|
121
|
+
*/
|
|
122
|
+
Element.prototype.replaceWith = function(nodes) {};
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @param {...(!Node|string)} nodes
|
|
126
|
+
* @return {undefined}
|
|
127
|
+
* @see https://dom.spec.whatwg.org/#dom-childnode-replacewith
|
|
128
|
+
*/
|
|
129
|
+
CharacterData.prototype.replaceWith = function(nodes) {};
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* @return {!Array<string>}
|
|
133
|
+
* @see https://dom.spec.whatwg.org/#dom-element-getattributenames
|
|
134
|
+
*/
|
|
135
|
+
Element.prototype.getAttributeNames = function() {};
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* @param {...(!Node|string)} nodes
|
|
139
|
+
* @return {undefined}
|
|
140
|
+
* @see https://dom.spec.whatwg.org/#dom-parentnode-append
|
|
141
|
+
*/
|
|
142
|
+
Element.prototype.append = function(nodes) {};
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* @param {...(!Node|string)} nodes
|
|
146
|
+
* @return {undefined}
|
|
147
|
+
* @see https://dom.spec.whatwg.org/#dom-parentnode-append
|
|
148
|
+
*/
|
|
149
|
+
Document.prototype.append = function(nodes) {};
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* @param {...(!Node|string)} nodes
|
|
153
|
+
* @return {undefined}
|
|
154
|
+
* @see https://dom.spec.whatwg.org/#dom-parentnode-append
|
|
155
|
+
*/
|
|
156
|
+
DocumentFragment.prototype.append = function(nodes) {};
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* @param {...(!Node|string)} nodes
|
|
160
|
+
* @return {undefined}
|
|
161
|
+
* @see https://dom.spec.whatwg.org/#dom-parentnode-prepend
|
|
162
|
+
*/
|
|
163
|
+
Element.prototype.prepend = function(nodes) {};
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* @param {...(!Node|string)} nodes
|
|
167
|
+
* @return {undefined}
|
|
168
|
+
* @see https://dom.spec.whatwg.org/#dom-parentnode-prepend
|
|
169
|
+
*/
|
|
170
|
+
Document.prototype.prepend = function(nodes) {};
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* @param {...(!Node|string)} nodes
|
|
174
|
+
* @return {undefined}
|
|
175
|
+
* @see https://dom.spec.whatwg.org/#dom-parentnode-prepend
|
|
176
|
+
*/
|
|
177
|
+
DocumentFragment.prototype.prepend = function(nodes) {};
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* @param {...(!Node|string)} nodes
|
|
181
|
+
* @return {undefined}
|
|
182
|
+
* @see https://dom.spec.whatwg.org/#dom-parentnode-replacechildren
|
|
183
|
+
*/
|
|
184
|
+
Element.prototype.replaceChildren = function(nodes) {};
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* @param {...(!Node|string)} nodes
|
|
188
|
+
* @return {undefined}
|
|
189
|
+
* @see https://dom.spec.whatwg.org/#dom-parentnode-replacechildren
|
|
190
|
+
*/
|
|
191
|
+
Document.prototype.replaceChildren = function(nodes) {};
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* @param {...(!Node|string)} nodes
|
|
195
|
+
* @return {undefined}
|
|
196
|
+
* @see https://dom.spec.whatwg.org/#dom-parentnode-replacechildren
|
|
197
|
+
*/
|
|
198
|
+
DocumentFragment.prototype.replaceChildren = function(nodes) {};
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* @param {...(!Node|string)} nodes
|
|
202
|
+
* @return {undefined}
|
|
203
|
+
* @see https://dom.spec.whatwg.org/#dom-childnode-before
|
|
204
|
+
*/
|
|
205
|
+
Element.prototype.before = function(nodes) {};
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* @param {...(!Node|string)} nodes
|
|
209
|
+
* @return {undefined}
|
|
210
|
+
* @see https://dom.spec.whatwg.org/#dom-childnode-before
|
|
211
|
+
*/
|
|
212
|
+
DocumentType.prototype.before = function(nodes) {};
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* @param {...(!Node|string)} nodes
|
|
216
|
+
* @return {undefined}
|
|
217
|
+
* @see https://dom.spec.whatwg.org/#dom-childnode-before
|
|
218
|
+
*/
|
|
219
|
+
CharacterData.prototype.before = function(nodes) {};
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* @param {...(!Node|string)} nodes
|
|
223
|
+
* @return {undefined}
|
|
224
|
+
* @see https://dom.spec.whatwg.org/#dom-childnode-after
|
|
225
|
+
*/
|
|
226
|
+
Element.prototype.after = function(nodes) {};
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* @param {...(!Node|string)} nodes
|
|
230
|
+
* @return {undefined}
|
|
231
|
+
* @see https://dom.spec.whatwg.org/#dom-childnode-after
|
|
232
|
+
*/
|
|
233
|
+
DocumentType.prototype.after = function(nodes) {};
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* @param {...(!Node|string)} nodes
|
|
237
|
+
* @return {undefined}
|
|
238
|
+
* @see https://dom.spec.whatwg.org/#dom-childnode-after
|
|
239
|
+
*/
|
|
240
|
+
CharacterData.prototype.after = function(nodes) {};
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* @param {string} name
|
|
244
|
+
* @param {boolean=} force
|
|
245
|
+
* @return {boolean}
|
|
246
|
+
* @throws {DOMException}
|
|
247
|
+
* @see https://dom.spec.whatwg.org/#dom-element-toggleattribute
|
|
248
|
+
*/
|
|
249
|
+
Element.prototype.toggleAttribute = function(name, force) {};
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* @type {Element}
|
|
253
|
+
* @see http://msdn.microsoft.com/en-us/library/ms534327(VS.85).aspx
|
|
254
|
+
*/
|
|
255
|
+
Node.prototype.parentElement;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* @param {string} name
|
|
259
|
+
* @return {!HTMLCollection<!Element>}
|
|
260
|
+
* @nosideeffects
|
|
261
|
+
* @see https://dom.spec.whatwg.org/#dom-document-getelementsbyclassname-classnames-classnames
|
|
262
|
+
*/
|
|
263
|
+
Document.prototype.getElementsByClassName = function(name) {};
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* @param {string} classNames
|
|
267
|
+
* @return {!HTMLCollection<!Element>}
|
|
268
|
+
* @nosideeffects
|
|
269
|
+
* @see https://dom.spec.whatwg.org/#dom-element-getelementsbyclassname-classnames-classnames
|
|
270
|
+
*/
|
|
271
|
+
Element.prototype.getElementsByClassName = function(classNames) {};
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* @param {string} where
|
|
275
|
+
* @param {Element} element
|
|
276
|
+
* @return {!Element}
|
|
277
|
+
* @throws {DOMException}
|
|
278
|
+
* @see https://dom.spec.whatwg.org/#dom-element-insertadjacentelement
|
|
279
|
+
*/
|
|
280
|
+
Element.prototype.insertAdjacentElement = function(where, element) {};
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* @param {string} where
|
|
284
|
+
* @param {string} data
|
|
285
|
+
* @return {undefined}
|
|
286
|
+
* @throws {DOMException}
|
|
287
|
+
* @see https://dom.spec.whatwg.org/#dom-element-insertadjacenttext
|
|
288
|
+
*/
|
|
289
|
+
Element.prototype.insertAdjacentText = function(where, data) {};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2009 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 DOM Element Traversal interface.
|
|
19
|
+
* This file depends on w3c_dom1.js.
|
|
20
|
+
* The whole file has been fully type annotated.
|
|
21
|
+
* Created from:
|
|
22
|
+
* http://www.w3.org/TR/ElementTraversal/#ecmascript-bindings
|
|
23
|
+
*
|
|
24
|
+
* @externs
|
|
25
|
+
* @author arv@google.com (Erik Arvidsson)
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @typedef {?(Document|DocumentFragment|Element)}
|
|
30
|
+
* @see https://dom.spec.whatwg.org/#parentnode
|
|
31
|
+
*/
|
|
32
|
+
var ParentNode;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @typedef {?(Element|CharacterData)}
|
|
36
|
+
* @see https://dom.spec.whatwg.org/#nondocumenttypechildnode
|
|
37
|
+
*/
|
|
38
|
+
var NonDocumentTypeChildNode;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @type {Element}
|
|
42
|
+
* @see https://developer.mozilla.org/En/DOM/Element.firstElementChild
|
|
43
|
+
*/
|
|
44
|
+
Element.prototype.firstElementChild;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @type {Element}
|
|
48
|
+
* @see https://developer.mozilla.org/En/DOM/Element.lastElementChild
|
|
49
|
+
*/
|
|
50
|
+
Element.prototype.lastElementChild;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @type {Element}
|
|
54
|
+
* @see https://developer.mozilla.org/En/DOM/Element.previousElementSibling
|
|
55
|
+
*/
|
|
56
|
+
Element.prototype.previousElementSibling;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @type {Element}
|
|
60
|
+
* @see https://developer.mozilla.org/En/DOM/Element.nextElementSibling
|
|
61
|
+
*/
|
|
62
|
+
Element.prototype.nextElementSibling;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @type {number}
|
|
66
|
+
* @see https://developer.mozilla.org/En/DOM/Element.childElementCount
|
|
67
|
+
*/
|
|
68
|
+
Element.prototype.childElementCount;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @type {?Element}
|
|
72
|
+
* @see https://dom.spec.whatwg.org/#dom-parentnode-firstelementchild
|
|
73
|
+
*/
|
|
74
|
+
Document.prototype.firstElementChild;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @type {?Element}
|
|
78
|
+
* @see https://dom.spec.whatwg.org/#dom-parentnode-lastelementchild
|
|
79
|
+
*/
|
|
80
|
+
Document.prototype.lastElementChild;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @type {number}
|
|
84
|
+
* @see https://dom.spec.whatwg.org/#dom-parentnode-childelementcount
|
|
85
|
+
*/
|
|
86
|
+
Document.prototype.childElementCount;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* @type {?Element}
|
|
90
|
+
* @see https://dom.spec.whatwg.org/#dom-parentnode-firstelementchild
|
|
91
|
+
*/
|
|
92
|
+
DocumentFragment.prototype.firstElementChild;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @type {?Element}
|
|
96
|
+
* @see https://dom.spec.whatwg.org/#dom-parentnode-lastelementchild
|
|
97
|
+
*/
|
|
98
|
+
DocumentFragment.prototype.lastElementChild;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @type {number}
|
|
102
|
+
* @see https://dom.spec.whatwg.org/#dom-parentnode-childelementcount
|
|
103
|
+
*/
|
|
104
|
+
DocumentFragment.prototype.childElementCount;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @type {?Element}
|
|
108
|
+
* @see https://dom.spec.whatwg.org/#dom-nondocumenttypechildnode-previouselementsibling
|
|
109
|
+
*/
|
|
110
|
+
CharacterData.prototype.previousElementSibling;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* @type {?Element}
|
|
114
|
+
* @see https://dom.spec.whatwg.org/#dom-nondocumenttypechildnode-nextelementsibling
|
|
115
|
+
*/
|
|
116
|
+
CharacterData.prototype.nextElementSibling;
|