@markuplint/ml-core 2.3.4 → 2.3.5
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/lib/ml-core.d.ts +1 -1
- package/lib/ml-dom/manipulations/child-node-methods.d.ts +33 -0
- package/lib/ml-dom/manipulations/child-node-methods.js +73 -0
- package/lib/ml-dom/manipulations/get-children.d.ts +4 -0
- package/lib/ml-dom/manipulations/get-children.js +10 -0
- package/lib/ml-dom/node/attr.d.ts +98 -0
- package/lib/ml-dom/node/attr.js +157 -0
- package/lib/ml-dom/node/block.d.ts +38 -0
- package/lib/ml-dom/node/block.js +53 -0
- package/lib/ml-dom/node/character-data.d.ts +57 -0
- package/lib/ml-dom/node/character-data.js +87 -0
- package/lib/ml-dom/node/child-node.d.ts +9 -0
- package/lib/ml-dom/node/child-node.js +10 -0
- package/lib/ml-dom/node/comment.d.ts +17 -0
- package/lib/ml-dom/node/comment.js +24 -0
- package/lib/ml-dom/node/document-fragment.d.ts +24 -0
- package/lib/ml-dom/node/document-fragment.js +33 -0
- package/lib/ml-dom/node/document-type.d.ts +38 -0
- package/lib/ml-dom/node/document-type.js +52 -0
- package/lib/ml-dom/node/document.d.ts +1599 -0
- package/lib/ml-dom/node/document.js +2172 -0
- package/lib/ml-dom/node/dom-token-list.d.ts +33 -0
- package/lib/ml-dom/node/dom-token-list.js +137 -0
- package/lib/ml-dom/node/element.d.ts +1900 -0
- package/lib/ml-dom/node/element.js +2683 -0
- package/lib/ml-dom/node/named-node-map.d.ts +42 -0
- package/lib/ml-dom/node/named-node-map.js +64 -0
- package/lib/ml-dom/node/node-list.d.ts +6 -0
- package/lib/ml-dom/node/node-list.js +39 -0
- package/lib/ml-dom/node/node-store.d.ts +14 -0
- package/lib/ml-dom/node/node-store.js +32 -0
- package/lib/ml-dom/node/node.d.ts +482 -0
- package/lib/ml-dom/node/node.js +675 -0
- package/lib/ml-dom/node/parent-node.d.ts +66 -0
- package/lib/ml-dom/node/parent-node.js +131 -0
- package/lib/ml-dom/node/rule-mapper.d.ts +17 -0
- package/lib/ml-dom/node/rule-mapper.js +49 -0
- package/lib/ml-dom/node/text.d.ts +51 -0
- package/lib/ml-dom/node/text.js +76 -0
- package/lib/ml-dom/node/types.d.ts +35 -0
- package/lib/ml-dom/node/types.js +2 -0
- package/lib/ml-dom/node/unexpected-call-error.d.ts +2 -0
- package/lib/ml-dom/node/unexpected-call-error.js +5 -0
- package/lib/ml-dom/token/token.d.ts +47 -0
- package/lib/ml-dom/token/token.js +89 -0
- package/package.json +4 -4
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,2172 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var _MLDocument_filename, _MLDocument_tokenList;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.MLDocument = void 0;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
6
|
+
const ml_config_1 = require("@markuplint/ml-config");
|
|
7
|
+
const ml_spec_1 = require("@markuplint/ml-spec");
|
|
8
|
+
const selector_1 = require("@markuplint/selector");
|
|
9
|
+
const debug_1 = require("../../debug");
|
|
10
|
+
const create_node_1 = require("../helper/create-node");
|
|
11
|
+
const debug_2 = require("../helper/debug");
|
|
12
|
+
const walkers_1 = require("../helper/walkers");
|
|
13
|
+
const node_list_1 = require("./node-list");
|
|
14
|
+
const parent_node_1 = require("./parent-node");
|
|
15
|
+
const rule_mapper_1 = require("./rule-mapper");
|
|
16
|
+
const unexpected_call_error_1 = tslib_1.__importDefault(require("./unexpected-call-error"));
|
|
17
|
+
const log = debug_1.log.extend('ml-dom');
|
|
18
|
+
const docLog = log.extend('document');
|
|
19
|
+
const ruleLog = docLog.extend('rule');
|
|
20
|
+
class MLDocument extends parent_node_1.MLParentNode {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @param ast node list of markuplint AST
|
|
24
|
+
* @param ruleset ruleset object
|
|
25
|
+
*/
|
|
26
|
+
constructor(ast, ruleset, schemas, options) {
|
|
27
|
+
var _a;
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
super(ast, null);
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
this.currentRule = null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
_MLDocument_filename.set(this, void 0);
|
|
38
|
+
_MLDocument_tokenList.set(this, null);
|
|
39
|
+
this.isFragment = ast.isFragment;
|
|
40
|
+
this.specs = (0, ml_spec_1.schemaToSpec)(schemas);
|
|
41
|
+
this.booleanish = (options === null || options === void 0 ? void 0 : options.booleanish) || false;
|
|
42
|
+
this.endTag = (_a = options === null || options === void 0 ? void 0 : options.endTag) !== null && _a !== void 0 ? _a : 'omittable';
|
|
43
|
+
tslib_1.__classPrivateFieldSet(this, _MLDocument_filename, options === null || options === void 0 ? void 0 : options.filename, "f");
|
|
44
|
+
// console.log(ast.nodeList.map((n, i) => `${i}: ${n.uuid} "${n.raw.trim()}"(${n.type})`));
|
|
45
|
+
this.nodeList = Object.freeze(ast.nodeList
|
|
46
|
+
.map(astNode => {
|
|
47
|
+
if (astNode.type === 'endtag') {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
return (0, create_node_1.createNode)(astNode, this);
|
|
51
|
+
})
|
|
52
|
+
.filter((n) => !!n));
|
|
53
|
+
this._pretending(options === null || options === void 0 ? void 0 : options.pretenders);
|
|
54
|
+
this._ruleMapping(ruleset);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
58
|
+
*
|
|
59
|
+
* @unsupported
|
|
60
|
+
* @implements DOM API: `Document`
|
|
61
|
+
*/
|
|
62
|
+
get URL() {
|
|
63
|
+
throw new unexpected_call_error_1.default('Not supported "URL" property');
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
67
|
+
*
|
|
68
|
+
* @unsupported
|
|
69
|
+
* @implements DOM API: `Document`
|
|
70
|
+
*/
|
|
71
|
+
get activeElement() {
|
|
72
|
+
throw new unexpected_call_error_1.default('Not supported "activeElement" property');
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
76
|
+
*
|
|
77
|
+
* @unsupported
|
|
78
|
+
* @implements DOM API: `Document`
|
|
79
|
+
*/
|
|
80
|
+
get adoptedStyleSheets() {
|
|
81
|
+
throw new unexpected_call_error_1.default('Not supported "adoptedStyleSheets" property');
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
85
|
+
*
|
|
86
|
+
* @deprecated
|
|
87
|
+
* @unsupported
|
|
88
|
+
* @implements DOM API: `Document`
|
|
89
|
+
*/
|
|
90
|
+
get alinkColor() {
|
|
91
|
+
throw new unexpected_call_error_1.default('Not supported "alinkColor" property');
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
95
|
+
*
|
|
96
|
+
* @deprecated
|
|
97
|
+
* @unsupported
|
|
98
|
+
* @implements DOM API: `Document`
|
|
99
|
+
*/
|
|
100
|
+
get all() {
|
|
101
|
+
throw new unexpected_call_error_1.default('Not supported "all" property');
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
105
|
+
*
|
|
106
|
+
* @deprecated
|
|
107
|
+
* @unsupported
|
|
108
|
+
* @implements DOM API: `Document`
|
|
109
|
+
*/
|
|
110
|
+
get anchors() {
|
|
111
|
+
throw new unexpected_call_error_1.default('Not supported "anchors" property');
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
115
|
+
*
|
|
116
|
+
* @deprecated
|
|
117
|
+
* @unsupported
|
|
118
|
+
* @implements DOM API: `Document`
|
|
119
|
+
*/
|
|
120
|
+
get applets() {
|
|
121
|
+
throw new unexpected_call_error_1.default('Not supported "applets" property');
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
125
|
+
*
|
|
126
|
+
* @deprecated
|
|
127
|
+
* @unsupported
|
|
128
|
+
* @implements DOM API: `Document`
|
|
129
|
+
*/
|
|
130
|
+
get bgColor() {
|
|
131
|
+
throw new unexpected_call_error_1.default('Not supported "bgColor" property');
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
135
|
+
*
|
|
136
|
+
* @unsupported
|
|
137
|
+
* @implements DOM API: `Document`
|
|
138
|
+
*/
|
|
139
|
+
get body() {
|
|
140
|
+
throw new unexpected_call_error_1.default('Not supported "body" property');
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
144
|
+
*
|
|
145
|
+
* @unsupported
|
|
146
|
+
* @implements DOM API: `Document`
|
|
147
|
+
*/
|
|
148
|
+
get characterSet() {
|
|
149
|
+
throw new unexpected_call_error_1.default('Not supported "characterSet" property');
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
153
|
+
*
|
|
154
|
+
* @deprecated
|
|
155
|
+
* @unsupported
|
|
156
|
+
* @implements DOM API: `Document`
|
|
157
|
+
*/
|
|
158
|
+
get charset() {
|
|
159
|
+
throw new unexpected_call_error_1.default('Not supported "charset" property');
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
163
|
+
*
|
|
164
|
+
* @unsupported
|
|
165
|
+
* @implements DOM API: `Document`
|
|
166
|
+
*/
|
|
167
|
+
get compatMode() {
|
|
168
|
+
throw new unexpected_call_error_1.default('Not supported "compatMode" property');
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
172
|
+
*
|
|
173
|
+
* @unsupported
|
|
174
|
+
* @implements DOM API: `Document`
|
|
175
|
+
*/
|
|
176
|
+
get contentType() {
|
|
177
|
+
throw new unexpected_call_error_1.default('Not supported "contentType" property');
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
181
|
+
*
|
|
182
|
+
* @unsupported
|
|
183
|
+
* @implements DOM API: `Document`
|
|
184
|
+
*/
|
|
185
|
+
get cookie() {
|
|
186
|
+
throw new unexpected_call_error_1.default('Not supported "cookie" property');
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
190
|
+
*
|
|
191
|
+
* @unsupported
|
|
192
|
+
* @implements DOM API: `Document`
|
|
193
|
+
*/
|
|
194
|
+
get currentScript() {
|
|
195
|
+
throw new unexpected_call_error_1.default('Not supported "currentScript" property');
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Window object for calling the `getComputedStyle` and the `getPropertyValue` that
|
|
199
|
+
* are needed by **Accessible Name and Description Computation**.
|
|
200
|
+
* But it always returns the empty object.
|
|
201
|
+
* (It may improve to possible to compute the name from the `style` attribute in the future.)
|
|
202
|
+
*
|
|
203
|
+
* @implements DOM API: `Document`
|
|
204
|
+
*/
|
|
205
|
+
get defaultView() {
|
|
206
|
+
return {
|
|
207
|
+
getComputedStyle(_el) {
|
|
208
|
+
return {
|
|
209
|
+
getPropertyValue(_propName) {
|
|
210
|
+
return {};
|
|
211
|
+
},
|
|
212
|
+
};
|
|
213
|
+
},
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
218
|
+
*
|
|
219
|
+
* @unsupported
|
|
220
|
+
* @implements DOM API: `Document`
|
|
221
|
+
*/
|
|
222
|
+
get designMode() {
|
|
223
|
+
throw new unexpected_call_error_1.default('Not supported "designMode" property');
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
227
|
+
*
|
|
228
|
+
* @unsupported
|
|
229
|
+
* @implements DOM API: `Document`
|
|
230
|
+
*/
|
|
231
|
+
get dir() {
|
|
232
|
+
throw new unexpected_call_error_1.default('Not supported "dir" property');
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* @implements DOM API: `Document`
|
|
236
|
+
*/
|
|
237
|
+
get doctype() {
|
|
238
|
+
for (const node of this.nodeList) {
|
|
239
|
+
if (node.is(node.DOCUMENT_TYPE_NODE)) {
|
|
240
|
+
return node;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
return null;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
247
|
+
*
|
|
248
|
+
* @unsupported
|
|
249
|
+
* @implements DOM API: `Document`
|
|
250
|
+
*/
|
|
251
|
+
get documentElement() {
|
|
252
|
+
throw new unexpected_call_error_1.default('Not supported "documentElement" property');
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
256
|
+
*
|
|
257
|
+
* @unsupported
|
|
258
|
+
* @implements DOM API: `Document`
|
|
259
|
+
*/
|
|
260
|
+
get documentURI() {
|
|
261
|
+
throw new unexpected_call_error_1.default('Not supported "documentURI" property');
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
265
|
+
*
|
|
266
|
+
* @unsupported
|
|
267
|
+
* @implements DOM API: `Document`
|
|
268
|
+
*/
|
|
269
|
+
get domain() {
|
|
270
|
+
throw new unexpected_call_error_1.default('Not supported "domain" property');
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
274
|
+
*
|
|
275
|
+
* @unsupported
|
|
276
|
+
* @implements DOM API: `Document`
|
|
277
|
+
*/
|
|
278
|
+
get embeds() {
|
|
279
|
+
throw new unexpected_call_error_1.default('Not supported "embeds" property');
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
283
|
+
*
|
|
284
|
+
* @deprecated
|
|
285
|
+
* @unsupported
|
|
286
|
+
* @implements DOM API: `Document`
|
|
287
|
+
*/
|
|
288
|
+
get fgColor() {
|
|
289
|
+
throw new unexpected_call_error_1.default('Not supported "fgColor" property');
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* It could be used in rule, make sure it is immutable
|
|
293
|
+
*
|
|
294
|
+
* @implements `@markuplint/ml-core` API: `MLDOMDocument`
|
|
295
|
+
*/
|
|
296
|
+
get filename() {
|
|
297
|
+
return tslib_1.__classPrivateFieldGet(this, _MLDocument_filename, "f");
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
301
|
+
*
|
|
302
|
+
* @unsupported
|
|
303
|
+
* @implements DOM API: `Document`
|
|
304
|
+
*/
|
|
305
|
+
get fonts() {
|
|
306
|
+
throw new unexpected_call_error_1.default('Not supported "fonts" property');
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
310
|
+
*
|
|
311
|
+
* @unsupported
|
|
312
|
+
* @implements DOM API: `Document`
|
|
313
|
+
*/
|
|
314
|
+
get forms() {
|
|
315
|
+
throw new unexpected_call_error_1.default('Not supported "forms" property');
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
319
|
+
*
|
|
320
|
+
* @deprecated
|
|
321
|
+
* @unsupported
|
|
322
|
+
* @implements DOM API: `Document`
|
|
323
|
+
*/
|
|
324
|
+
get fullscreen() {
|
|
325
|
+
throw new unexpected_call_error_1.default('Not supported "fullscreen" property');
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
329
|
+
*
|
|
330
|
+
* @unsupported
|
|
331
|
+
* @implements DOM API: `Document`
|
|
332
|
+
*/
|
|
333
|
+
get fullscreenElement() {
|
|
334
|
+
throw new unexpected_call_error_1.default('Not supported "fullscreenElement" property');
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
338
|
+
*
|
|
339
|
+
* @unsupported
|
|
340
|
+
* @implements DOM API: `Document`
|
|
341
|
+
*/
|
|
342
|
+
get fullscreenEnabled() {
|
|
343
|
+
throw new unexpected_call_error_1.default('Not supported "FullscreenEnabledURL" property');
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
347
|
+
*
|
|
348
|
+
* @unsupported
|
|
349
|
+
* @implements DOM API: `Document`
|
|
350
|
+
*/
|
|
351
|
+
get head() {
|
|
352
|
+
throw new unexpected_call_error_1.default('Not supported "head" property');
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
356
|
+
*
|
|
357
|
+
* @unsupported
|
|
358
|
+
* @implements DOM API: `Document`
|
|
359
|
+
*/
|
|
360
|
+
get hidden() {
|
|
361
|
+
throw new unexpected_call_error_1.default('Not supported "hidden" property');
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
365
|
+
*
|
|
366
|
+
* @unsupported
|
|
367
|
+
* @implements DOM API: `Document`
|
|
368
|
+
*/
|
|
369
|
+
get images() {
|
|
370
|
+
throw new unexpected_call_error_1.default('Not supported "images" property');
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
374
|
+
*
|
|
375
|
+
* @unsupported
|
|
376
|
+
* @implements DOM API: `Document`
|
|
377
|
+
*/
|
|
378
|
+
get implementation() {
|
|
379
|
+
throw new unexpected_call_error_1.default('Not supported "implementation" property');
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
383
|
+
*
|
|
384
|
+
* @deprecated
|
|
385
|
+
* @unsupported
|
|
386
|
+
* @implements DOM API: `Document`
|
|
387
|
+
*/
|
|
388
|
+
get inputEncoding() {
|
|
389
|
+
throw new unexpected_call_error_1.default('Not supported "inputEncoding" property');
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
393
|
+
*
|
|
394
|
+
* @unsupported
|
|
395
|
+
* @implements DOM API: `Document`
|
|
396
|
+
*/
|
|
397
|
+
get lastModified() {
|
|
398
|
+
throw new unexpected_call_error_1.default('Not supported "lastModified" property');
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
402
|
+
*
|
|
403
|
+
* @deprecated
|
|
404
|
+
* @unsupported
|
|
405
|
+
* @implements DOM API: `Document`
|
|
406
|
+
*/
|
|
407
|
+
get linkColor() {
|
|
408
|
+
throw new unexpected_call_error_1.default('Not supported "linkColor" property');
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
412
|
+
*
|
|
413
|
+
* @unsupported
|
|
414
|
+
* @implements DOM API: `Document`
|
|
415
|
+
*/
|
|
416
|
+
get links() {
|
|
417
|
+
throw new unexpected_call_error_1.default('Not supported "links" property');
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
421
|
+
*
|
|
422
|
+
* @unsupported
|
|
423
|
+
* @implements DOM API: `Document`
|
|
424
|
+
*/
|
|
425
|
+
get location() {
|
|
426
|
+
throw new unexpected_call_error_1.default('Not supported "location" property');
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* Returns a string appropriate for the type of node as `Document`
|
|
430
|
+
*
|
|
431
|
+
* @see https://dom.spec.whatwg.org/#ref-for-document%E2%91%A8
|
|
432
|
+
*/
|
|
433
|
+
get nodeName() {
|
|
434
|
+
return '#document';
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* Returns a number appropriate for the type of `Document`
|
|
438
|
+
*/
|
|
439
|
+
get nodeType() {
|
|
440
|
+
return this.DOCUMENT_NODE;
|
|
441
|
+
}
|
|
442
|
+
/**
|
|
443
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
444
|
+
*
|
|
445
|
+
* @deprecated
|
|
446
|
+
* @unsupported
|
|
447
|
+
* @implements DOM API: `Document`
|
|
448
|
+
*/
|
|
449
|
+
get onabort() {
|
|
450
|
+
throw new unexpected_call_error_1.default('Not supported "onabort" property');
|
|
451
|
+
}
|
|
452
|
+
/**
|
|
453
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
454
|
+
*
|
|
455
|
+
* @deprecated
|
|
456
|
+
* @unsupported
|
|
457
|
+
* @implements DOM API: `Document`
|
|
458
|
+
*/
|
|
459
|
+
get onanimationcancel() {
|
|
460
|
+
throw new unexpected_call_error_1.default('Not supported "onanimationcancel" property');
|
|
461
|
+
}
|
|
462
|
+
/**
|
|
463
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
464
|
+
*
|
|
465
|
+
* @deprecated
|
|
466
|
+
* @unsupported
|
|
467
|
+
* @implements DOM API: `Document`
|
|
468
|
+
*/
|
|
469
|
+
get onanimationend() {
|
|
470
|
+
throw new unexpected_call_error_1.default('Not supported "onanimationend" property');
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
474
|
+
*
|
|
475
|
+
* @deprecated
|
|
476
|
+
* @unsupported
|
|
477
|
+
* @implements DOM API: `Document`
|
|
478
|
+
*/
|
|
479
|
+
get onanimationiteration() {
|
|
480
|
+
throw new unexpected_call_error_1.default('Not supported "onanimationiteration" property');
|
|
481
|
+
}
|
|
482
|
+
/**
|
|
483
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
484
|
+
*
|
|
485
|
+
* @deprecated
|
|
486
|
+
* @unsupported
|
|
487
|
+
* @implements DOM API: `Document`
|
|
488
|
+
*/
|
|
489
|
+
get onanimationstart() {
|
|
490
|
+
throw new unexpected_call_error_1.default('Not supported "onanimationstart" property');
|
|
491
|
+
}
|
|
492
|
+
/**
|
|
493
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
494
|
+
*
|
|
495
|
+
* @deprecated
|
|
496
|
+
* @unsupported
|
|
497
|
+
* @implements DOM API: `Document`
|
|
498
|
+
*/
|
|
499
|
+
get onauxclick() {
|
|
500
|
+
throw new unexpected_call_error_1.default('Not supported "onauxclick" property');
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
504
|
+
*
|
|
505
|
+
* @deprecated
|
|
506
|
+
* @unsupported
|
|
507
|
+
* @implements DOM API: `Document`
|
|
508
|
+
*/
|
|
509
|
+
get onbeforeinput() {
|
|
510
|
+
throw new unexpected_call_error_1.default('Not supported "onbeforeinput" property');
|
|
511
|
+
}
|
|
512
|
+
/**
|
|
513
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
514
|
+
*
|
|
515
|
+
* @deprecated
|
|
516
|
+
* @unsupported
|
|
517
|
+
* @implements DOM API: `Document`
|
|
518
|
+
*/
|
|
519
|
+
get onblur() {
|
|
520
|
+
throw new unexpected_call_error_1.default('Not supported "onblur" property');
|
|
521
|
+
}
|
|
522
|
+
/**
|
|
523
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
524
|
+
*
|
|
525
|
+
* @deprecated
|
|
526
|
+
* @unsupported
|
|
527
|
+
* @implements DOM API: `Document`
|
|
528
|
+
*/
|
|
529
|
+
get oncancel() {
|
|
530
|
+
throw new unexpected_call_error_1.default('Not supported "oncanplay" property');
|
|
531
|
+
}
|
|
532
|
+
/**
|
|
533
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
534
|
+
*
|
|
535
|
+
* @deprecated
|
|
536
|
+
* @unsupported
|
|
537
|
+
* @implements DOM API: `Document`
|
|
538
|
+
*/
|
|
539
|
+
get oncanplay() {
|
|
540
|
+
throw new unexpected_call_error_1.default('Not supported "oncanplay" property');
|
|
541
|
+
}
|
|
542
|
+
/**
|
|
543
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
544
|
+
*
|
|
545
|
+
* @deprecated
|
|
546
|
+
* @unsupported
|
|
547
|
+
* @implements DOM API: `Document`
|
|
548
|
+
*/
|
|
549
|
+
get oncanplaythrough() {
|
|
550
|
+
throw new unexpected_call_error_1.default('Not supported "oncanplaythrough" property');
|
|
551
|
+
}
|
|
552
|
+
/**
|
|
553
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
554
|
+
*
|
|
555
|
+
* @deprecated
|
|
556
|
+
* @unsupported
|
|
557
|
+
* @implements DOM API: `Document`
|
|
558
|
+
*/
|
|
559
|
+
get onchange() {
|
|
560
|
+
throw new unexpected_call_error_1.default('Not supported "onchange" property');
|
|
561
|
+
}
|
|
562
|
+
/**
|
|
563
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
564
|
+
*
|
|
565
|
+
* @deprecated
|
|
566
|
+
* @unsupported
|
|
567
|
+
* @implements DOM API: `Document`
|
|
568
|
+
*/
|
|
569
|
+
get onclick() {
|
|
570
|
+
throw new unexpected_call_error_1.default('Not supported "onclick" property');
|
|
571
|
+
}
|
|
572
|
+
/**
|
|
573
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
574
|
+
*
|
|
575
|
+
* @deprecated
|
|
576
|
+
* @unsupported
|
|
577
|
+
* @implements DOM API: `Document`
|
|
578
|
+
*/
|
|
579
|
+
get onclose() {
|
|
580
|
+
throw new unexpected_call_error_1.default('Not supported "onclose" property');
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
584
|
+
*
|
|
585
|
+
* @deprecated
|
|
586
|
+
* @unsupported
|
|
587
|
+
* @implements DOM API: `Document`
|
|
588
|
+
*/
|
|
589
|
+
get oncontextmenu() {
|
|
590
|
+
throw new unexpected_call_error_1.default('Not supported "oncontextmenu" property');
|
|
591
|
+
}
|
|
592
|
+
/**
|
|
593
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
594
|
+
*
|
|
595
|
+
* @deprecated
|
|
596
|
+
* @unsupported
|
|
597
|
+
* @implements DOM API: `Document`
|
|
598
|
+
*/
|
|
599
|
+
get oncopy() {
|
|
600
|
+
throw new unexpected_call_error_1.default('Not supported "oncopy" property');
|
|
601
|
+
}
|
|
602
|
+
/**
|
|
603
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
604
|
+
*
|
|
605
|
+
* @deprecated
|
|
606
|
+
* @unsupported
|
|
607
|
+
* @implements DOM API: `Document`
|
|
608
|
+
*/
|
|
609
|
+
get oncuechange() {
|
|
610
|
+
throw new unexpected_call_error_1.default('Not supported "oncuechange" property');
|
|
611
|
+
}
|
|
612
|
+
/**
|
|
613
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
614
|
+
*
|
|
615
|
+
* @deprecated
|
|
616
|
+
* @unsupported
|
|
617
|
+
* @implements DOM API: `Document`
|
|
618
|
+
*/
|
|
619
|
+
get oncut() {
|
|
620
|
+
throw new unexpected_call_error_1.default('Not supported "oncut" property');
|
|
621
|
+
}
|
|
622
|
+
/**
|
|
623
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
624
|
+
*
|
|
625
|
+
* @deprecated
|
|
626
|
+
* @unsupported
|
|
627
|
+
* @implements DOM API: `Document`
|
|
628
|
+
*/
|
|
629
|
+
get ondblclick() {
|
|
630
|
+
throw new unexpected_call_error_1.default('Not supported "ondblclick" property');
|
|
631
|
+
}
|
|
632
|
+
/**
|
|
633
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
634
|
+
*
|
|
635
|
+
* @deprecated
|
|
636
|
+
* @unsupported
|
|
637
|
+
* @implements DOM API: `Document`
|
|
638
|
+
*/
|
|
639
|
+
get ondrag() {
|
|
640
|
+
throw new unexpected_call_error_1.default('Not supported "ondrag" property');
|
|
641
|
+
}
|
|
642
|
+
/**
|
|
643
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
644
|
+
*
|
|
645
|
+
* @deprecated
|
|
646
|
+
* @unsupported
|
|
647
|
+
* @implements DOM API: `Document`
|
|
648
|
+
*/
|
|
649
|
+
get ondragend() {
|
|
650
|
+
throw new unexpected_call_error_1.default('Not supported "ondragend" property');
|
|
651
|
+
}
|
|
652
|
+
/**
|
|
653
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
654
|
+
*
|
|
655
|
+
* @deprecated
|
|
656
|
+
* @unsupported
|
|
657
|
+
* @implements DOM API: `Document`
|
|
658
|
+
*/
|
|
659
|
+
get ondragenter() {
|
|
660
|
+
throw new unexpected_call_error_1.default('Not supported "ondragenter" property');
|
|
661
|
+
}
|
|
662
|
+
/**
|
|
663
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
664
|
+
*
|
|
665
|
+
* @deprecated
|
|
666
|
+
* @unsupported
|
|
667
|
+
* @implements DOM API: `Document`
|
|
668
|
+
*/
|
|
669
|
+
get ondragleave() {
|
|
670
|
+
throw new unexpected_call_error_1.default('Not supported "ondragleave" property');
|
|
671
|
+
}
|
|
672
|
+
/**
|
|
673
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
674
|
+
*
|
|
675
|
+
* @deprecated
|
|
676
|
+
* @unsupported
|
|
677
|
+
* @implements DOM API: `Document`
|
|
678
|
+
*/
|
|
679
|
+
get ondragover() {
|
|
680
|
+
throw new unexpected_call_error_1.default('Not supported "ondragover" property');
|
|
681
|
+
}
|
|
682
|
+
/**
|
|
683
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
684
|
+
*
|
|
685
|
+
* @deprecated
|
|
686
|
+
* @unsupported
|
|
687
|
+
* @implements DOM API: `Document`
|
|
688
|
+
*/
|
|
689
|
+
get ondragstart() {
|
|
690
|
+
throw new unexpected_call_error_1.default('Not supported "ondragstart" property');
|
|
691
|
+
}
|
|
692
|
+
/**
|
|
693
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
694
|
+
*
|
|
695
|
+
* @deprecated
|
|
696
|
+
* @unsupported
|
|
697
|
+
* @implements DOM API: `Document`
|
|
698
|
+
*/
|
|
699
|
+
get ondrop() {
|
|
700
|
+
throw new unexpected_call_error_1.default('Not supported "ondrop" property');
|
|
701
|
+
}
|
|
702
|
+
/**
|
|
703
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
704
|
+
*
|
|
705
|
+
* @deprecated
|
|
706
|
+
* @unsupported
|
|
707
|
+
* @implements DOM API: `Document`
|
|
708
|
+
*/
|
|
709
|
+
get ondurationchange() {
|
|
710
|
+
throw new unexpected_call_error_1.default('Not supported "ondurationchange" property');
|
|
711
|
+
}
|
|
712
|
+
/**
|
|
713
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
714
|
+
*
|
|
715
|
+
* @deprecated
|
|
716
|
+
* @unsupported
|
|
717
|
+
* @implements DOM API: `Document`
|
|
718
|
+
*/
|
|
719
|
+
get onemptied() {
|
|
720
|
+
throw new unexpected_call_error_1.default('Not supported "onemptied" property');
|
|
721
|
+
}
|
|
722
|
+
/**
|
|
723
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
724
|
+
*
|
|
725
|
+
* @deprecated
|
|
726
|
+
* @unsupported
|
|
727
|
+
* @implements DOM API: `Document`
|
|
728
|
+
*/
|
|
729
|
+
get onended() {
|
|
730
|
+
throw new unexpected_call_error_1.default('Not supported "onended" property');
|
|
731
|
+
}
|
|
732
|
+
/**
|
|
733
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
734
|
+
*
|
|
735
|
+
* @deprecated
|
|
736
|
+
* @unsupported
|
|
737
|
+
* @implements DOM API: `Document`
|
|
738
|
+
*/
|
|
739
|
+
get onerror() {
|
|
740
|
+
throw new unexpected_call_error_1.default('Not supported "onerror" property');
|
|
741
|
+
}
|
|
742
|
+
/**
|
|
743
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
744
|
+
*
|
|
745
|
+
* @deprecated
|
|
746
|
+
* @unsupported
|
|
747
|
+
* @implements DOM API: `Document`
|
|
748
|
+
*/
|
|
749
|
+
get onfocus() {
|
|
750
|
+
throw new unexpected_call_error_1.default('Not supported "onfocus" property');
|
|
751
|
+
}
|
|
752
|
+
/**
|
|
753
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
754
|
+
*
|
|
755
|
+
* @deprecated
|
|
756
|
+
* @unsupported
|
|
757
|
+
* @implements DOM API: `Document`
|
|
758
|
+
*/
|
|
759
|
+
get onformdata() {
|
|
760
|
+
throw new unexpected_call_error_1.default('Not supported "onformdata" property');
|
|
761
|
+
}
|
|
762
|
+
/**
|
|
763
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
764
|
+
*
|
|
765
|
+
* @deprecated
|
|
766
|
+
* @unsupported
|
|
767
|
+
* @implements DOM API: `Document`
|
|
768
|
+
*/
|
|
769
|
+
get onfullscreenchange() {
|
|
770
|
+
throw new unexpected_call_error_1.default('Not supported "onfullscreenchange" property');
|
|
771
|
+
}
|
|
772
|
+
/**
|
|
773
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
774
|
+
*
|
|
775
|
+
* @deprecated
|
|
776
|
+
* @unsupported
|
|
777
|
+
* @implements DOM API: `Document`
|
|
778
|
+
*/
|
|
779
|
+
get onfullscreenerror() {
|
|
780
|
+
throw new unexpected_call_error_1.default('Not supported "onfullscreenerror" property');
|
|
781
|
+
}
|
|
782
|
+
/**
|
|
783
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
784
|
+
*
|
|
785
|
+
* @deprecated
|
|
786
|
+
* @unsupported
|
|
787
|
+
* @implements DOM API: `Document`
|
|
788
|
+
*/
|
|
789
|
+
get ongotpointercapture() {
|
|
790
|
+
throw new unexpected_call_error_1.default('Not supported "ongotpointercapture" property');
|
|
791
|
+
}
|
|
792
|
+
/**
|
|
793
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
794
|
+
*
|
|
795
|
+
* @deprecated
|
|
796
|
+
* @unsupported
|
|
797
|
+
* @implements DOM API: `Document`
|
|
798
|
+
*/
|
|
799
|
+
get oninput() {
|
|
800
|
+
throw new unexpected_call_error_1.default('Not supported "oninput" property');
|
|
801
|
+
}
|
|
802
|
+
/**
|
|
803
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
804
|
+
*
|
|
805
|
+
* @deprecated
|
|
806
|
+
* @unsupported
|
|
807
|
+
* @implements DOM API: `Document`
|
|
808
|
+
*/
|
|
809
|
+
get oninvalid() {
|
|
810
|
+
throw new unexpected_call_error_1.default('Not supported "oninvalid" property');
|
|
811
|
+
}
|
|
812
|
+
/**
|
|
813
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
814
|
+
*
|
|
815
|
+
* @deprecated
|
|
816
|
+
* @unsupported
|
|
817
|
+
* @implements DOM API: `Document`
|
|
818
|
+
*/
|
|
819
|
+
get onkeydown() {
|
|
820
|
+
throw new unexpected_call_error_1.default('Not supported "onkeydown" property');
|
|
821
|
+
}
|
|
822
|
+
/**
|
|
823
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
824
|
+
*
|
|
825
|
+
* @deprecated
|
|
826
|
+
* @unsupported
|
|
827
|
+
* @implements DOM API: `Document`
|
|
828
|
+
*/
|
|
829
|
+
get onkeypress() {
|
|
830
|
+
throw new unexpected_call_error_1.default('Not supported "onkeypress" property');
|
|
831
|
+
}
|
|
832
|
+
/**
|
|
833
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
834
|
+
*
|
|
835
|
+
* @deprecated
|
|
836
|
+
* @unsupported
|
|
837
|
+
* @implements DOM API: `Document`
|
|
838
|
+
*/
|
|
839
|
+
get onkeyup() {
|
|
840
|
+
throw new unexpected_call_error_1.default('Not supported "onkeyup" property');
|
|
841
|
+
}
|
|
842
|
+
/**
|
|
843
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
844
|
+
*
|
|
845
|
+
* @deprecated
|
|
846
|
+
* @unsupported
|
|
847
|
+
* @implements DOM API: `Document`
|
|
848
|
+
*/
|
|
849
|
+
get onload() {
|
|
850
|
+
throw new unexpected_call_error_1.default('Not supported "onload" property');
|
|
851
|
+
}
|
|
852
|
+
/**
|
|
853
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
854
|
+
*
|
|
855
|
+
* @deprecated
|
|
856
|
+
* @unsupported
|
|
857
|
+
* @implements DOM API: `Document`
|
|
858
|
+
*/
|
|
859
|
+
get onloadeddata() {
|
|
860
|
+
throw new unexpected_call_error_1.default('Not supported "onloadeddata" property');
|
|
861
|
+
}
|
|
862
|
+
/**
|
|
863
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
864
|
+
*
|
|
865
|
+
* @deprecated
|
|
866
|
+
* @unsupported
|
|
867
|
+
* @implements DOM API: `Document`
|
|
868
|
+
*/
|
|
869
|
+
get onloadedmetadata() {
|
|
870
|
+
throw new unexpected_call_error_1.default('Not supported "onloadedmetadata" property');
|
|
871
|
+
}
|
|
872
|
+
/**
|
|
873
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
874
|
+
*
|
|
875
|
+
* @deprecated
|
|
876
|
+
* @unsupported
|
|
877
|
+
* @implements DOM API: `Document`
|
|
878
|
+
*/
|
|
879
|
+
get onloadstart() {
|
|
880
|
+
throw new unexpected_call_error_1.default('Not supported "onloadstart" property');
|
|
881
|
+
}
|
|
882
|
+
/**
|
|
883
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
884
|
+
*
|
|
885
|
+
* @deprecated
|
|
886
|
+
* @unsupported
|
|
887
|
+
* @implements DOM API: `Document`
|
|
888
|
+
*/
|
|
889
|
+
get onlostpointercapture() {
|
|
890
|
+
throw new unexpected_call_error_1.default('Not supported "onlostpointercapture" property');
|
|
891
|
+
}
|
|
892
|
+
/**
|
|
893
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
894
|
+
*
|
|
895
|
+
* @deprecated
|
|
896
|
+
* @unsupported
|
|
897
|
+
* @implements DOM API: `Document`
|
|
898
|
+
*/
|
|
899
|
+
get onmousedown() {
|
|
900
|
+
throw new unexpected_call_error_1.default('Not supported "onmousedown" property');
|
|
901
|
+
}
|
|
902
|
+
/**
|
|
903
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
904
|
+
*
|
|
905
|
+
* @deprecated
|
|
906
|
+
* @unsupported
|
|
907
|
+
* @implements DOM API: `Document`
|
|
908
|
+
*/
|
|
909
|
+
get onmouseenter() {
|
|
910
|
+
throw new unexpected_call_error_1.default('Not supported "onmouseenter" property');
|
|
911
|
+
}
|
|
912
|
+
/**
|
|
913
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
914
|
+
*
|
|
915
|
+
* @deprecated
|
|
916
|
+
* @unsupported
|
|
917
|
+
* @implements DOM API: `Document`
|
|
918
|
+
*/
|
|
919
|
+
get onmouseleave() {
|
|
920
|
+
throw new unexpected_call_error_1.default('Not supported "onmouseleave" property');
|
|
921
|
+
}
|
|
922
|
+
/**
|
|
923
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
924
|
+
*
|
|
925
|
+
* @deprecated
|
|
926
|
+
* @unsupported
|
|
927
|
+
* @implements DOM API: `Document`
|
|
928
|
+
*/
|
|
929
|
+
get onmousemove() {
|
|
930
|
+
throw new unexpected_call_error_1.default('Not supported "onmousemove" property');
|
|
931
|
+
}
|
|
932
|
+
/**
|
|
933
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
934
|
+
*
|
|
935
|
+
* @deprecated
|
|
936
|
+
* @unsupported
|
|
937
|
+
* @implements DOM API: `Document`
|
|
938
|
+
*/
|
|
939
|
+
get onmouseout() {
|
|
940
|
+
throw new unexpected_call_error_1.default('Not supported "onmouseout" property');
|
|
941
|
+
}
|
|
942
|
+
/**
|
|
943
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
944
|
+
*
|
|
945
|
+
* @deprecated
|
|
946
|
+
* @unsupported
|
|
947
|
+
* @implements DOM API: `Document`
|
|
948
|
+
*/
|
|
949
|
+
get onmouseover() {
|
|
950
|
+
throw new unexpected_call_error_1.default('Not supported "onmouseover" property');
|
|
951
|
+
}
|
|
952
|
+
/**
|
|
953
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
954
|
+
*
|
|
955
|
+
* @deprecated
|
|
956
|
+
* @unsupported
|
|
957
|
+
* @implements DOM API: `Document`
|
|
958
|
+
*/
|
|
959
|
+
get onmouseup() {
|
|
960
|
+
throw new unexpected_call_error_1.default('Not supported "onmouseup" property');
|
|
961
|
+
}
|
|
962
|
+
/**
|
|
963
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
964
|
+
*
|
|
965
|
+
* @deprecated
|
|
966
|
+
* @unsupported
|
|
967
|
+
* @implements DOM API: `Document`
|
|
968
|
+
*/
|
|
969
|
+
get onpaste() {
|
|
970
|
+
throw new unexpected_call_error_1.default('Not supported "onpaste" property');
|
|
971
|
+
}
|
|
972
|
+
/**
|
|
973
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
974
|
+
*
|
|
975
|
+
* @deprecated
|
|
976
|
+
* @unsupported
|
|
977
|
+
* @implements DOM API: `Document`
|
|
978
|
+
*/
|
|
979
|
+
get onpause() {
|
|
980
|
+
throw new unexpected_call_error_1.default('Not supported "onpause" property');
|
|
981
|
+
}
|
|
982
|
+
/**
|
|
983
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
984
|
+
*
|
|
985
|
+
* @deprecated
|
|
986
|
+
* @unsupported
|
|
987
|
+
* @implements DOM API: `Document`
|
|
988
|
+
*/
|
|
989
|
+
get onplay() {
|
|
990
|
+
throw new unexpected_call_error_1.default('Not supported "onplay" property');
|
|
991
|
+
}
|
|
992
|
+
/**
|
|
993
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
994
|
+
*
|
|
995
|
+
* @deprecated
|
|
996
|
+
* @unsupported
|
|
997
|
+
* @implements DOM API: `Document`
|
|
998
|
+
*/
|
|
999
|
+
get onplaying() {
|
|
1000
|
+
throw new unexpected_call_error_1.default('Not supported "onplaying" property');
|
|
1001
|
+
}
|
|
1002
|
+
/**
|
|
1003
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1004
|
+
*
|
|
1005
|
+
* @deprecated
|
|
1006
|
+
* @unsupported
|
|
1007
|
+
* @implements DOM API: `Document`
|
|
1008
|
+
*/
|
|
1009
|
+
get onpointercancel() {
|
|
1010
|
+
throw new unexpected_call_error_1.default('Not supported "onpointercancel" property');
|
|
1011
|
+
}
|
|
1012
|
+
/**
|
|
1013
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1014
|
+
*
|
|
1015
|
+
* @deprecated
|
|
1016
|
+
* @unsupported
|
|
1017
|
+
* @implements DOM API: `Document`
|
|
1018
|
+
*/
|
|
1019
|
+
get onpointerdown() {
|
|
1020
|
+
throw new unexpected_call_error_1.default('Not supported "onpointerdown" property');
|
|
1021
|
+
}
|
|
1022
|
+
/**
|
|
1023
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1024
|
+
*
|
|
1025
|
+
* @deprecated
|
|
1026
|
+
* @unsupported
|
|
1027
|
+
* @implements DOM API: `Document`
|
|
1028
|
+
*/
|
|
1029
|
+
get onpointerenter() {
|
|
1030
|
+
throw new unexpected_call_error_1.default('Not supported "onpointerenter" property');
|
|
1031
|
+
}
|
|
1032
|
+
/**
|
|
1033
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1034
|
+
*
|
|
1035
|
+
* @deprecated
|
|
1036
|
+
* @unsupported
|
|
1037
|
+
* @implements DOM API: `Document`
|
|
1038
|
+
*/
|
|
1039
|
+
get onpointerleave() {
|
|
1040
|
+
throw new unexpected_call_error_1.default('Not supported "onpointerleave" property');
|
|
1041
|
+
}
|
|
1042
|
+
/**
|
|
1043
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1044
|
+
*
|
|
1045
|
+
* @deprecated
|
|
1046
|
+
* @unsupported
|
|
1047
|
+
* @implements DOM API: `Document`
|
|
1048
|
+
*/
|
|
1049
|
+
get onpointerlockchange() {
|
|
1050
|
+
throw new unexpected_call_error_1.default('Not supported "onpointerlockchange" property');
|
|
1051
|
+
}
|
|
1052
|
+
/**
|
|
1053
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1054
|
+
*
|
|
1055
|
+
* @deprecated
|
|
1056
|
+
* @unsupported
|
|
1057
|
+
* @implements DOM API: `Document`
|
|
1058
|
+
*/
|
|
1059
|
+
get onpointerlockerror() {
|
|
1060
|
+
throw new unexpected_call_error_1.default('Not supported "onpointerlockerror" property');
|
|
1061
|
+
}
|
|
1062
|
+
/**
|
|
1063
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1064
|
+
*
|
|
1065
|
+
* @deprecated
|
|
1066
|
+
* @unsupported
|
|
1067
|
+
* @implements DOM API: `Document`
|
|
1068
|
+
*/
|
|
1069
|
+
get onpointermove() {
|
|
1070
|
+
throw new unexpected_call_error_1.default('Not supported "onpointermove" property');
|
|
1071
|
+
}
|
|
1072
|
+
/**
|
|
1073
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1074
|
+
*
|
|
1075
|
+
* @deprecated
|
|
1076
|
+
* @unsupported
|
|
1077
|
+
* @implements DOM API: `Document`
|
|
1078
|
+
*/
|
|
1079
|
+
get onpointerout() {
|
|
1080
|
+
throw new unexpected_call_error_1.default('Not supported "onpointerout" property');
|
|
1081
|
+
}
|
|
1082
|
+
/**
|
|
1083
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1084
|
+
*
|
|
1085
|
+
* @deprecated
|
|
1086
|
+
* @unsupported
|
|
1087
|
+
* @implements DOM API: `Document`
|
|
1088
|
+
*/
|
|
1089
|
+
get onpointerover() {
|
|
1090
|
+
throw new unexpected_call_error_1.default('Not supported "onpointerover" property');
|
|
1091
|
+
}
|
|
1092
|
+
/**
|
|
1093
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1094
|
+
*
|
|
1095
|
+
* @deprecated
|
|
1096
|
+
* @unsupported
|
|
1097
|
+
* @implements DOM API: `Document`
|
|
1098
|
+
*/
|
|
1099
|
+
get onpointerup() {
|
|
1100
|
+
throw new unexpected_call_error_1.default('Not supported "onpointerup" property');
|
|
1101
|
+
}
|
|
1102
|
+
/**
|
|
1103
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1104
|
+
*
|
|
1105
|
+
* @deprecated
|
|
1106
|
+
* @unsupported
|
|
1107
|
+
* @implements DOM API: `Document`
|
|
1108
|
+
*/
|
|
1109
|
+
get onprogress() {
|
|
1110
|
+
throw new unexpected_call_error_1.default('Not supported "onprogress" property');
|
|
1111
|
+
}
|
|
1112
|
+
/**
|
|
1113
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1114
|
+
*
|
|
1115
|
+
* @deprecated
|
|
1116
|
+
* @unsupported
|
|
1117
|
+
* @implements DOM API: `Document`
|
|
1118
|
+
*/
|
|
1119
|
+
get onratechange() {
|
|
1120
|
+
throw new unexpected_call_error_1.default('Not supported "onratechange" property');
|
|
1121
|
+
}
|
|
1122
|
+
/**
|
|
1123
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1124
|
+
*
|
|
1125
|
+
* @deprecated
|
|
1126
|
+
* @unsupported
|
|
1127
|
+
* @implements DOM API: `Document`
|
|
1128
|
+
*/
|
|
1129
|
+
get onreadystatechange() {
|
|
1130
|
+
throw new unexpected_call_error_1.default('Not supported "onreadystatechange" property');
|
|
1131
|
+
}
|
|
1132
|
+
/**
|
|
1133
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1134
|
+
*
|
|
1135
|
+
* @deprecated
|
|
1136
|
+
* @unsupported
|
|
1137
|
+
* @implements DOM API: `Document`
|
|
1138
|
+
*/
|
|
1139
|
+
get onreset() {
|
|
1140
|
+
throw new unexpected_call_error_1.default('Not supported "onreset" property');
|
|
1141
|
+
}
|
|
1142
|
+
/**
|
|
1143
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1144
|
+
*
|
|
1145
|
+
* @deprecated
|
|
1146
|
+
* @unsupported
|
|
1147
|
+
* @implements DOM API: `Document`
|
|
1148
|
+
*/
|
|
1149
|
+
get onresize() {
|
|
1150
|
+
throw new unexpected_call_error_1.default('Not supported "onresize" property');
|
|
1151
|
+
}
|
|
1152
|
+
/**
|
|
1153
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1154
|
+
*
|
|
1155
|
+
* @deprecated
|
|
1156
|
+
* @unsupported
|
|
1157
|
+
* @implements DOM API: `Document`
|
|
1158
|
+
*/
|
|
1159
|
+
get onscroll() {
|
|
1160
|
+
throw new unexpected_call_error_1.default('Not supported "onscroll" property');
|
|
1161
|
+
}
|
|
1162
|
+
/**
|
|
1163
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1164
|
+
*
|
|
1165
|
+
* @deprecated
|
|
1166
|
+
* @unsupported
|
|
1167
|
+
* @implements DOM API: `Document`
|
|
1168
|
+
*/
|
|
1169
|
+
get onsecuritypolicyviolation() {
|
|
1170
|
+
throw new unexpected_call_error_1.default('Not supported "onsecuritypolicyviolation" property');
|
|
1171
|
+
}
|
|
1172
|
+
/**
|
|
1173
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1174
|
+
*
|
|
1175
|
+
* @deprecated
|
|
1176
|
+
* @unsupported
|
|
1177
|
+
* @implements DOM API: `Document`
|
|
1178
|
+
*/
|
|
1179
|
+
get onseeked() {
|
|
1180
|
+
throw new unexpected_call_error_1.default('Not supported "onseeked" property');
|
|
1181
|
+
}
|
|
1182
|
+
/**
|
|
1183
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1184
|
+
*
|
|
1185
|
+
* @deprecated
|
|
1186
|
+
* @unsupported
|
|
1187
|
+
* @implements DOM API: `Document`
|
|
1188
|
+
*/
|
|
1189
|
+
get onseeking() {
|
|
1190
|
+
throw new unexpected_call_error_1.default('Not supported "onseeking" property');
|
|
1191
|
+
}
|
|
1192
|
+
/**
|
|
1193
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1194
|
+
*
|
|
1195
|
+
* @deprecated
|
|
1196
|
+
* @unsupported
|
|
1197
|
+
* @implements DOM API: `Document`
|
|
1198
|
+
*/
|
|
1199
|
+
get onselect() {
|
|
1200
|
+
throw new unexpected_call_error_1.default('Not supported "onselect" property');
|
|
1201
|
+
}
|
|
1202
|
+
/**
|
|
1203
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1204
|
+
*
|
|
1205
|
+
* @deprecated
|
|
1206
|
+
* @unsupported
|
|
1207
|
+
* @implements DOM API: `Document`
|
|
1208
|
+
*/
|
|
1209
|
+
get onselectionchange() {
|
|
1210
|
+
throw new unexpected_call_error_1.default('Not supported "onselectionchange" property');
|
|
1211
|
+
}
|
|
1212
|
+
/**
|
|
1213
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1214
|
+
*
|
|
1215
|
+
* @deprecated
|
|
1216
|
+
* @unsupported
|
|
1217
|
+
* @implements DOM API: `Document`
|
|
1218
|
+
*/
|
|
1219
|
+
get onselectstart() {
|
|
1220
|
+
throw new unexpected_call_error_1.default('Not supported "onselectstart" property');
|
|
1221
|
+
}
|
|
1222
|
+
/**
|
|
1223
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1224
|
+
*
|
|
1225
|
+
* @deprecated
|
|
1226
|
+
* @unsupported
|
|
1227
|
+
* @implements DOM API: `Document`
|
|
1228
|
+
*/
|
|
1229
|
+
get onslotchange() {
|
|
1230
|
+
throw new unexpected_call_error_1.default('Not supported "onslotchange" property');
|
|
1231
|
+
}
|
|
1232
|
+
/**
|
|
1233
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1234
|
+
*
|
|
1235
|
+
* @deprecated
|
|
1236
|
+
* @unsupported
|
|
1237
|
+
* @implements DOM API: `Document`
|
|
1238
|
+
*/
|
|
1239
|
+
get onstalled() {
|
|
1240
|
+
throw new unexpected_call_error_1.default('Not supported "onstalled" property');
|
|
1241
|
+
}
|
|
1242
|
+
/**
|
|
1243
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1244
|
+
*
|
|
1245
|
+
* @deprecated
|
|
1246
|
+
* @unsupported
|
|
1247
|
+
* @implements DOM API: `Document`
|
|
1248
|
+
*/
|
|
1249
|
+
get onsubmit() {
|
|
1250
|
+
throw new unexpected_call_error_1.default('Not supported "onsubmit" property');
|
|
1251
|
+
}
|
|
1252
|
+
/**
|
|
1253
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1254
|
+
*
|
|
1255
|
+
* @deprecated
|
|
1256
|
+
* @unsupported
|
|
1257
|
+
* @implements DOM API: `Document`
|
|
1258
|
+
*/
|
|
1259
|
+
get onsuspend() {
|
|
1260
|
+
throw new unexpected_call_error_1.default('Not supported "onsuspend" property');
|
|
1261
|
+
}
|
|
1262
|
+
/**
|
|
1263
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1264
|
+
*
|
|
1265
|
+
* @deprecated
|
|
1266
|
+
* @unsupported
|
|
1267
|
+
* @implements DOM API: `Document`
|
|
1268
|
+
*/
|
|
1269
|
+
get ontimeupdate() {
|
|
1270
|
+
throw new unexpected_call_error_1.default('Not supported "ontimeupdate" property');
|
|
1271
|
+
}
|
|
1272
|
+
/**
|
|
1273
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1274
|
+
*
|
|
1275
|
+
* @deprecated
|
|
1276
|
+
* @unsupported
|
|
1277
|
+
* @implements DOM API: `Document`
|
|
1278
|
+
*/
|
|
1279
|
+
get ontoggle() {
|
|
1280
|
+
throw new unexpected_call_error_1.default('Not supported "ontoggle" property');
|
|
1281
|
+
}
|
|
1282
|
+
/**
|
|
1283
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1284
|
+
*
|
|
1285
|
+
* @deprecated
|
|
1286
|
+
* @unsupported
|
|
1287
|
+
* @implements DOM API: `Document`
|
|
1288
|
+
*/
|
|
1289
|
+
get ontransitioncancel() {
|
|
1290
|
+
throw new unexpected_call_error_1.default('Not supported "ontransitioncancel" property');
|
|
1291
|
+
}
|
|
1292
|
+
/**
|
|
1293
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1294
|
+
*
|
|
1295
|
+
* @deprecated
|
|
1296
|
+
* @unsupported
|
|
1297
|
+
* @implements DOM API: `Document`
|
|
1298
|
+
*/
|
|
1299
|
+
get ontransitionend() {
|
|
1300
|
+
throw new unexpected_call_error_1.default('Not supported "ontransitionend" property');
|
|
1301
|
+
}
|
|
1302
|
+
/**
|
|
1303
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1304
|
+
*
|
|
1305
|
+
* @deprecated
|
|
1306
|
+
* @unsupported
|
|
1307
|
+
* @implements DOM API: `Document`
|
|
1308
|
+
*/
|
|
1309
|
+
get ontransitionrun() {
|
|
1310
|
+
throw new unexpected_call_error_1.default('Not supported "ontransitionrun" property');
|
|
1311
|
+
}
|
|
1312
|
+
/**
|
|
1313
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1314
|
+
*
|
|
1315
|
+
* @deprecated
|
|
1316
|
+
* @unsupported
|
|
1317
|
+
* @implements DOM API: `Document`
|
|
1318
|
+
*/
|
|
1319
|
+
get ontransitionstart() {
|
|
1320
|
+
throw new unexpected_call_error_1.default('Not supported "ontransitionstart" property');
|
|
1321
|
+
}
|
|
1322
|
+
/**
|
|
1323
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1324
|
+
*
|
|
1325
|
+
* @deprecated
|
|
1326
|
+
* @unsupported
|
|
1327
|
+
* @implements DOM API: `Document`
|
|
1328
|
+
*/
|
|
1329
|
+
get onvisibilitychange() {
|
|
1330
|
+
throw new unexpected_call_error_1.default('Not supported "onvisibilitychange" property');
|
|
1331
|
+
}
|
|
1332
|
+
/**
|
|
1333
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1334
|
+
*
|
|
1335
|
+
* @deprecated
|
|
1336
|
+
* @unsupported
|
|
1337
|
+
* @implements DOM API: `Document`
|
|
1338
|
+
*/
|
|
1339
|
+
get onvolumechange() {
|
|
1340
|
+
throw new unexpected_call_error_1.default('Not supported "onvolumechange" property');
|
|
1341
|
+
}
|
|
1342
|
+
/**
|
|
1343
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1344
|
+
*
|
|
1345
|
+
* @deprecated
|
|
1346
|
+
* @unsupported
|
|
1347
|
+
* @implements DOM API: `Document`
|
|
1348
|
+
*/
|
|
1349
|
+
get onwaiting() {
|
|
1350
|
+
throw new unexpected_call_error_1.default('Not supported "onwaiting" property');
|
|
1351
|
+
}
|
|
1352
|
+
/**
|
|
1353
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1354
|
+
*
|
|
1355
|
+
* @deprecated
|
|
1356
|
+
* @unsupported
|
|
1357
|
+
* @implements DOM API: `Document`
|
|
1358
|
+
*/
|
|
1359
|
+
get onwebkitanimationend() {
|
|
1360
|
+
throw new unexpected_call_error_1.default('Not supported "onwebkitanimationend" property');
|
|
1361
|
+
}
|
|
1362
|
+
/**
|
|
1363
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1364
|
+
*
|
|
1365
|
+
* @deprecated
|
|
1366
|
+
* @unsupported
|
|
1367
|
+
* @implements DOM API: `Document`
|
|
1368
|
+
*/
|
|
1369
|
+
get onwebkitanimationiteration() {
|
|
1370
|
+
throw new unexpected_call_error_1.default('Not supported "onwebkitanimationiteration" property');
|
|
1371
|
+
}
|
|
1372
|
+
/**
|
|
1373
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1374
|
+
*
|
|
1375
|
+
* @deprecated
|
|
1376
|
+
* @unsupported
|
|
1377
|
+
* @implements DOM API: `Document`
|
|
1378
|
+
*/
|
|
1379
|
+
get onwebkitanimationstart() {
|
|
1380
|
+
throw new unexpected_call_error_1.default('Not supported "onwebkitanimationstart" property');
|
|
1381
|
+
}
|
|
1382
|
+
/**
|
|
1383
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1384
|
+
*
|
|
1385
|
+
* @deprecated
|
|
1386
|
+
* @unsupported
|
|
1387
|
+
* @implements DOM API: `Document`
|
|
1388
|
+
*/
|
|
1389
|
+
get onwebkittransitionend() {
|
|
1390
|
+
throw new unexpected_call_error_1.default('Not supported "onwebkittransitionend" property');
|
|
1391
|
+
}
|
|
1392
|
+
/**
|
|
1393
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1394
|
+
*
|
|
1395
|
+
* @deprecated
|
|
1396
|
+
* @unsupported
|
|
1397
|
+
* @implements DOM API: `Document`
|
|
1398
|
+
*/
|
|
1399
|
+
get onwheel() {
|
|
1400
|
+
throw new unexpected_call_error_1.default('Not supported "onwheel" property');
|
|
1401
|
+
}
|
|
1402
|
+
get ownerDocument() {
|
|
1403
|
+
return null;
|
|
1404
|
+
}
|
|
1405
|
+
get ownerMLDocument() {
|
|
1406
|
+
return this;
|
|
1407
|
+
}
|
|
1408
|
+
/**
|
|
1409
|
+
* @implements DOM API: `Document`
|
|
1410
|
+
* @see https://dom.spec.whatwg.org/#ref-for-dom-node-parentnode%E2%91%A0
|
|
1411
|
+
*/
|
|
1412
|
+
get parentNode() {
|
|
1413
|
+
return null;
|
|
1414
|
+
}
|
|
1415
|
+
/**
|
|
1416
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1417
|
+
*
|
|
1418
|
+
* @unsupported
|
|
1419
|
+
* @implements DOM API: `Document`
|
|
1420
|
+
*/
|
|
1421
|
+
get pictureInPictureElement() {
|
|
1422
|
+
throw new unexpected_call_error_1.default('Not supported "pictureInPictureElement" property');
|
|
1423
|
+
}
|
|
1424
|
+
/**
|
|
1425
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1426
|
+
*
|
|
1427
|
+
* @unsupported
|
|
1428
|
+
* @implements DOM API: `Document`
|
|
1429
|
+
*/
|
|
1430
|
+
get pictureInPictureEnabled() {
|
|
1431
|
+
throw new unexpected_call_error_1.default('Not supported "pictureInPictureEnabled" property');
|
|
1432
|
+
}
|
|
1433
|
+
/**
|
|
1434
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1435
|
+
*
|
|
1436
|
+
* @unsupported
|
|
1437
|
+
* @implements DOM API: `Document`
|
|
1438
|
+
*/
|
|
1439
|
+
get plugins() {
|
|
1440
|
+
throw new unexpected_call_error_1.default('Not supported "plugins" property');
|
|
1441
|
+
}
|
|
1442
|
+
/**
|
|
1443
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1444
|
+
*
|
|
1445
|
+
* @unsupported
|
|
1446
|
+
* @implements DOM API: `Document`
|
|
1447
|
+
*/
|
|
1448
|
+
get pointerLockElement() {
|
|
1449
|
+
throw new unexpected_call_error_1.default('Not supported "pointerLockElement" property');
|
|
1450
|
+
}
|
|
1451
|
+
/**
|
|
1452
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1453
|
+
*
|
|
1454
|
+
* @unsupported
|
|
1455
|
+
* @implements DOM API: `Document`
|
|
1456
|
+
*/
|
|
1457
|
+
get readyState() {
|
|
1458
|
+
throw new unexpected_call_error_1.default('Not supported "readyState" property');
|
|
1459
|
+
}
|
|
1460
|
+
/**
|
|
1461
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1462
|
+
*
|
|
1463
|
+
* @unsupported
|
|
1464
|
+
* @implements DOM API: `Document`
|
|
1465
|
+
*/
|
|
1466
|
+
get referrer() {
|
|
1467
|
+
throw new unexpected_call_error_1.default('Not supported "referrer" property');
|
|
1468
|
+
}
|
|
1469
|
+
/**
|
|
1470
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1471
|
+
*
|
|
1472
|
+
* @deprecated
|
|
1473
|
+
* @unsupported
|
|
1474
|
+
* @implements DOM API: `Document`
|
|
1475
|
+
*/
|
|
1476
|
+
get rootElement() {
|
|
1477
|
+
throw new unexpected_call_error_1.default('Not supported "rootElement" property');
|
|
1478
|
+
}
|
|
1479
|
+
/**
|
|
1480
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1481
|
+
*
|
|
1482
|
+
* @unsupported
|
|
1483
|
+
* @implements DOM API: `Document`
|
|
1484
|
+
*/
|
|
1485
|
+
get scripts() {
|
|
1486
|
+
throw new unexpected_call_error_1.default('Not supported "scripts" property');
|
|
1487
|
+
}
|
|
1488
|
+
/**
|
|
1489
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1490
|
+
*
|
|
1491
|
+
* @unsupported
|
|
1492
|
+
* @implements DOM API: `Document`
|
|
1493
|
+
*/
|
|
1494
|
+
get scrollingElement() {
|
|
1495
|
+
throw new unexpected_call_error_1.default('Not supported "scrollingElement" property');
|
|
1496
|
+
}
|
|
1497
|
+
/**
|
|
1498
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1499
|
+
*
|
|
1500
|
+
* @unsupported
|
|
1501
|
+
* @implements DOM API: `Document`
|
|
1502
|
+
*/
|
|
1503
|
+
get styleSheets() {
|
|
1504
|
+
throw new unexpected_call_error_1.default('Not supported "styleSheets" property');
|
|
1505
|
+
}
|
|
1506
|
+
/**
|
|
1507
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1508
|
+
*
|
|
1509
|
+
* @unsupported
|
|
1510
|
+
* @implements DOM API: `Document`
|
|
1511
|
+
*/
|
|
1512
|
+
get timeline() {
|
|
1513
|
+
throw new unexpected_call_error_1.default('Not supported "timeline" property');
|
|
1514
|
+
}
|
|
1515
|
+
/**
|
|
1516
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1517
|
+
*
|
|
1518
|
+
* @unsupported
|
|
1519
|
+
* @implements DOM API: `Document`
|
|
1520
|
+
*/
|
|
1521
|
+
get title() {
|
|
1522
|
+
throw new unexpected_call_error_1.default('Not supported "title" property');
|
|
1523
|
+
}
|
|
1524
|
+
/**
|
|
1525
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1526
|
+
*
|
|
1527
|
+
* @unsupported
|
|
1528
|
+
* @implements DOM API: `Document`
|
|
1529
|
+
*/
|
|
1530
|
+
get visibilityState() {
|
|
1531
|
+
throw new unexpected_call_error_1.default('Not supported "visibilityState" property');
|
|
1532
|
+
}
|
|
1533
|
+
/**
|
|
1534
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1535
|
+
*
|
|
1536
|
+
* @deprecated
|
|
1537
|
+
* @unsupported
|
|
1538
|
+
* @implements DOM API: `Document`
|
|
1539
|
+
*/
|
|
1540
|
+
get vlinkColor() {
|
|
1541
|
+
throw new unexpected_call_error_1.default('Not supported "vlinkColor" property');
|
|
1542
|
+
}
|
|
1543
|
+
/**
|
|
1544
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1545
|
+
*
|
|
1546
|
+
* @unsupported
|
|
1547
|
+
* @implements DOM API: `Document`
|
|
1548
|
+
*/
|
|
1549
|
+
adoptNode(node) {
|
|
1550
|
+
throw new unexpected_call_error_1.default('Not supported "adoptNode" method');
|
|
1551
|
+
}
|
|
1552
|
+
/**
|
|
1553
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1554
|
+
*
|
|
1555
|
+
* @deprecated
|
|
1556
|
+
* @unsupported
|
|
1557
|
+
* @implements DOM API: `Document`
|
|
1558
|
+
*/
|
|
1559
|
+
captureEvents() {
|
|
1560
|
+
throw new unexpected_call_error_1.default('Not supported "captureEvents" method');
|
|
1561
|
+
}
|
|
1562
|
+
/**
|
|
1563
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1564
|
+
*
|
|
1565
|
+
* @unsupported
|
|
1566
|
+
* @implements DOM API: `Document`
|
|
1567
|
+
*/
|
|
1568
|
+
caretRangeFromPoint(x, y) {
|
|
1569
|
+
throw new unexpected_call_error_1.default('Not supported "caretRangeFromPoint" method');
|
|
1570
|
+
}
|
|
1571
|
+
/**
|
|
1572
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1573
|
+
*
|
|
1574
|
+
* @deprecated
|
|
1575
|
+
* @unsupported
|
|
1576
|
+
* @implements DOM API: `Document`
|
|
1577
|
+
*/
|
|
1578
|
+
clear() {
|
|
1579
|
+
throw new unexpected_call_error_1.default('Not supported "clear" method');
|
|
1580
|
+
}
|
|
1581
|
+
/**
|
|
1582
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1583
|
+
*
|
|
1584
|
+
* @unsupported
|
|
1585
|
+
* @implements DOM API: `Document`
|
|
1586
|
+
*/
|
|
1587
|
+
close() {
|
|
1588
|
+
throw new unexpected_call_error_1.default('Not supported "close" method');
|
|
1589
|
+
}
|
|
1590
|
+
/**
|
|
1591
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1592
|
+
*
|
|
1593
|
+
* @unsupported
|
|
1594
|
+
* @implements DOM API: `Document`
|
|
1595
|
+
*/
|
|
1596
|
+
createAttribute(localName) {
|
|
1597
|
+
throw new unexpected_call_error_1.default('Not supported "createAttribute" method');
|
|
1598
|
+
}
|
|
1599
|
+
/**
|
|
1600
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1601
|
+
*
|
|
1602
|
+
* @unsupported
|
|
1603
|
+
* @implements DOM API: `Document`
|
|
1604
|
+
*/
|
|
1605
|
+
createAttributeNS(namespace, qualifiedName) {
|
|
1606
|
+
throw new unexpected_call_error_1.default('Not supported "createAttributeNS" method');
|
|
1607
|
+
}
|
|
1608
|
+
/**
|
|
1609
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1610
|
+
*
|
|
1611
|
+
* @unsupported
|
|
1612
|
+
* @implements DOM API: `Document`
|
|
1613
|
+
*/
|
|
1614
|
+
createCDATASection(data) {
|
|
1615
|
+
throw new unexpected_call_error_1.default('Not supported "createCDATASection" method');
|
|
1616
|
+
}
|
|
1617
|
+
/**
|
|
1618
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1619
|
+
*
|
|
1620
|
+
* @unsupported
|
|
1621
|
+
* @implements DOM API: `Document`
|
|
1622
|
+
*/
|
|
1623
|
+
createComment(data) {
|
|
1624
|
+
throw new unexpected_call_error_1.default('Not supported "createComment" method');
|
|
1625
|
+
}
|
|
1626
|
+
/**
|
|
1627
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1628
|
+
*
|
|
1629
|
+
* @unsupported
|
|
1630
|
+
* @implements DOM API: `Document`
|
|
1631
|
+
*/
|
|
1632
|
+
createDocumentFragment() {
|
|
1633
|
+
throw new unexpected_call_error_1.default('Not supported "createDocumentFragment" method');
|
|
1634
|
+
}
|
|
1635
|
+
/**
|
|
1636
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1637
|
+
*
|
|
1638
|
+
* @unsupported
|
|
1639
|
+
* @implements DOM API: `Document`
|
|
1640
|
+
*/
|
|
1641
|
+
createElement(tagName, options) {
|
|
1642
|
+
throw new unexpected_call_error_1.default('Not supported "createElement" method');
|
|
1643
|
+
}
|
|
1644
|
+
/**
|
|
1645
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1646
|
+
*
|
|
1647
|
+
* @unsupported
|
|
1648
|
+
* @implements DOM API: `Document`
|
|
1649
|
+
*/
|
|
1650
|
+
createElementNS(namespace, qualifiedName, options) {
|
|
1651
|
+
throw new unexpected_call_error_1.default('Not supported "createElementNS" method');
|
|
1652
|
+
}
|
|
1653
|
+
/**
|
|
1654
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1655
|
+
*
|
|
1656
|
+
* @unsupported
|
|
1657
|
+
* @implements DOM API: `Document`
|
|
1658
|
+
*/
|
|
1659
|
+
createEvent(eventInterface) {
|
|
1660
|
+
throw new unexpected_call_error_1.default('Not supported "createEvent" method');
|
|
1661
|
+
}
|
|
1662
|
+
/**
|
|
1663
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1664
|
+
*
|
|
1665
|
+
* @unsupported
|
|
1666
|
+
* @implements DOM API: `Document`
|
|
1667
|
+
*/
|
|
1668
|
+
createExpression(expression, resolver) {
|
|
1669
|
+
throw new unexpected_call_error_1.default('Not supported "createExpression" method');
|
|
1670
|
+
}
|
|
1671
|
+
/**
|
|
1672
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1673
|
+
*
|
|
1674
|
+
* @unsupported
|
|
1675
|
+
* @implements DOM API: `Document`
|
|
1676
|
+
*/
|
|
1677
|
+
createNSResolver(nodeResolver) {
|
|
1678
|
+
throw new unexpected_call_error_1.default('Not supported "createNSResolver" method');
|
|
1679
|
+
}
|
|
1680
|
+
/**
|
|
1681
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1682
|
+
*
|
|
1683
|
+
* @unsupported
|
|
1684
|
+
* @implements DOM API: `Document`
|
|
1685
|
+
*/
|
|
1686
|
+
createNodeIterator(root, whatToShow, filter) {
|
|
1687
|
+
throw new unexpected_call_error_1.default('Not supported "createNodeIterator" method');
|
|
1688
|
+
}
|
|
1689
|
+
/**
|
|
1690
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1691
|
+
*
|
|
1692
|
+
* @unsupported
|
|
1693
|
+
* @implements DOM API: `Document`
|
|
1694
|
+
*/
|
|
1695
|
+
createProcessingInstruction(target, data) {
|
|
1696
|
+
throw new unexpected_call_error_1.default('Not supported "createProcessingInstruction" method');
|
|
1697
|
+
}
|
|
1698
|
+
/**
|
|
1699
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1700
|
+
*
|
|
1701
|
+
* @unsupported
|
|
1702
|
+
* @implements DOM API: `Document`
|
|
1703
|
+
*/
|
|
1704
|
+
createRange() {
|
|
1705
|
+
throw new unexpected_call_error_1.default('Not supported "createRange" method');
|
|
1706
|
+
}
|
|
1707
|
+
/**
|
|
1708
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1709
|
+
*
|
|
1710
|
+
* @unsupported
|
|
1711
|
+
* @implements DOM API: `Document`
|
|
1712
|
+
*/
|
|
1713
|
+
createTextNode(data) {
|
|
1714
|
+
throw new unexpected_call_error_1.default('Not supported "createTextNode" method');
|
|
1715
|
+
}
|
|
1716
|
+
/**
|
|
1717
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1718
|
+
*
|
|
1719
|
+
* @unsupported
|
|
1720
|
+
* @implements DOM API: `Document`
|
|
1721
|
+
*/
|
|
1722
|
+
createTreeWalker(root, whatToShow, filter) {
|
|
1723
|
+
throw new unexpected_call_error_1.default('Not supported "createTreeWalker" method');
|
|
1724
|
+
}
|
|
1725
|
+
/**
|
|
1726
|
+
* @implements `@markuplint/ml-core` API: `MLDocument`
|
|
1727
|
+
*/
|
|
1728
|
+
debugMap() {
|
|
1729
|
+
return (0, debug_2.nodeListToDebugMaps)(this.nodeList, true);
|
|
1730
|
+
}
|
|
1731
|
+
/**
|
|
1732
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1733
|
+
*
|
|
1734
|
+
* @unsupported
|
|
1735
|
+
* @implements DOM API: `Document`
|
|
1736
|
+
*/
|
|
1737
|
+
elementFromPoint(x, y) {
|
|
1738
|
+
throw new unexpected_call_error_1.default('Not supported "elementFromPoint" method');
|
|
1739
|
+
}
|
|
1740
|
+
/**
|
|
1741
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1742
|
+
*
|
|
1743
|
+
* @unsupported
|
|
1744
|
+
* @implements DOM API: `Document`
|
|
1745
|
+
*/
|
|
1746
|
+
elementsFromPoint(x, y) {
|
|
1747
|
+
throw new unexpected_call_error_1.default('Not supported "elementsFromPoint" method');
|
|
1748
|
+
}
|
|
1749
|
+
/**
|
|
1750
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1751
|
+
*
|
|
1752
|
+
* @unsupported
|
|
1753
|
+
* @implements DOM API: `Document`
|
|
1754
|
+
*/
|
|
1755
|
+
evaluate(expression, contextNode, resolver, type, result) {
|
|
1756
|
+
throw new unexpected_call_error_1.default('Not supported "evaluate" method');
|
|
1757
|
+
}
|
|
1758
|
+
/**
|
|
1759
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1760
|
+
*
|
|
1761
|
+
* @deprecated
|
|
1762
|
+
* @unsupported
|
|
1763
|
+
* @implements DOM API: `Document`
|
|
1764
|
+
*/
|
|
1765
|
+
execCommand(commandId, showUI, value) {
|
|
1766
|
+
throw new unexpected_call_error_1.default('Not supported "execCommand" method');
|
|
1767
|
+
}
|
|
1768
|
+
/**
|
|
1769
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1770
|
+
*
|
|
1771
|
+
* @unsupported
|
|
1772
|
+
* @implements DOM API: `Document`
|
|
1773
|
+
*/
|
|
1774
|
+
exitFullscreen() {
|
|
1775
|
+
throw new unexpected_call_error_1.default('Not supported "exitFullscreen" method');
|
|
1776
|
+
}
|
|
1777
|
+
/**
|
|
1778
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1779
|
+
*
|
|
1780
|
+
* @unsupported
|
|
1781
|
+
* @implements DOM API: `Document`
|
|
1782
|
+
*/
|
|
1783
|
+
exitPictureInPicture() {
|
|
1784
|
+
throw new unexpected_call_error_1.default('Not supported "exitPictureInPicture" method');
|
|
1785
|
+
}
|
|
1786
|
+
/**
|
|
1787
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1788
|
+
*
|
|
1789
|
+
* @unsupported
|
|
1790
|
+
* @implements DOM API: `Document`
|
|
1791
|
+
*/
|
|
1792
|
+
exitPointerLock() {
|
|
1793
|
+
throw new unexpected_call_error_1.default('Not supported "exitPointerLock" method');
|
|
1794
|
+
}
|
|
1795
|
+
/**
|
|
1796
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1797
|
+
*
|
|
1798
|
+
* @unsupported
|
|
1799
|
+
* @implements DOM API: `Document`
|
|
1800
|
+
*/
|
|
1801
|
+
getAnimations() {
|
|
1802
|
+
throw new unexpected_call_error_1.default('Not supported "getAnimations" method');
|
|
1803
|
+
}
|
|
1804
|
+
/**
|
|
1805
|
+
* @implements DOM API: `Document`
|
|
1806
|
+
*/
|
|
1807
|
+
getElementById(elementId) {
|
|
1808
|
+
// TODO:
|
|
1809
|
+
return this.querySelector(`#${elementId}`);
|
|
1810
|
+
}
|
|
1811
|
+
/**
|
|
1812
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1813
|
+
*
|
|
1814
|
+
* @unsupported
|
|
1815
|
+
* @implements DOM API: `Document`
|
|
1816
|
+
*/
|
|
1817
|
+
getElementsByClassName(classNames) {
|
|
1818
|
+
return (0, node_list_1.nodeListToHTMLCollection)(this.querySelectorAll(classNames));
|
|
1819
|
+
}
|
|
1820
|
+
/**
|
|
1821
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1822
|
+
*
|
|
1823
|
+
* @unsupported
|
|
1824
|
+
* @implements DOM API: `Document`
|
|
1825
|
+
*/
|
|
1826
|
+
getElementsByName(elementName) {
|
|
1827
|
+
throw new unexpected_call_error_1.default('Not supported "getElementsByName" method');
|
|
1828
|
+
}
|
|
1829
|
+
/**
|
|
1830
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1831
|
+
*
|
|
1832
|
+
* @unsupported
|
|
1833
|
+
* @implements DOM API: `Document`
|
|
1834
|
+
*/
|
|
1835
|
+
getElementsByTagName(qualifiedName) {
|
|
1836
|
+
return (0, node_list_1.nodeListToHTMLCollection)(this.querySelectorAll(qualifiedName));
|
|
1837
|
+
}
|
|
1838
|
+
/**
|
|
1839
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1840
|
+
*
|
|
1841
|
+
* @unsupported
|
|
1842
|
+
* @implements DOM API: `Document`
|
|
1843
|
+
*/
|
|
1844
|
+
getElementsByTagNameNS(namespace, localName) {
|
|
1845
|
+
throw new unexpected_call_error_1.default('Not supported "getElementsByTagNameNS" method');
|
|
1846
|
+
}
|
|
1847
|
+
/**
|
|
1848
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1849
|
+
*
|
|
1850
|
+
* @unsupported
|
|
1851
|
+
* @implements DOM API: `Document`
|
|
1852
|
+
*/
|
|
1853
|
+
getSelection() {
|
|
1854
|
+
throw new unexpected_call_error_1.default('Not supported "getSelection" method');
|
|
1855
|
+
}
|
|
1856
|
+
/**
|
|
1857
|
+
* @implements `@markuplint/ml-core` API: `MLDocument`
|
|
1858
|
+
*/
|
|
1859
|
+
getTokenList() {
|
|
1860
|
+
if (tslib_1.__classPrivateFieldGet(this, _MLDocument_tokenList, "f")) {
|
|
1861
|
+
return tslib_1.__classPrivateFieldGet(this, _MLDocument_tokenList, "f");
|
|
1862
|
+
}
|
|
1863
|
+
const tokens = [];
|
|
1864
|
+
for (const node of this.nodeList) {
|
|
1865
|
+
tokens.push(node);
|
|
1866
|
+
if (node.is(node.ELEMENT_NODE) && node.closeTag) {
|
|
1867
|
+
tokens.push(node.closeTag);
|
|
1868
|
+
}
|
|
1869
|
+
}
|
|
1870
|
+
tokens.sort((a, b) => a.startOffset - b.startOffset);
|
|
1871
|
+
tslib_1.__classPrivateFieldSet(this, _MLDocument_tokenList, Object.freeze(tokens), "f");
|
|
1872
|
+
return tslib_1.__classPrivateFieldGet(this, _MLDocument_tokenList, "f");
|
|
1873
|
+
}
|
|
1874
|
+
/**
|
|
1875
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1876
|
+
*
|
|
1877
|
+
* @unsupported
|
|
1878
|
+
* @implements DOM API: `Document`
|
|
1879
|
+
*/
|
|
1880
|
+
hasFocus() {
|
|
1881
|
+
throw new unexpected_call_error_1.default('Not supported "hasFocus" method');
|
|
1882
|
+
}
|
|
1883
|
+
/**
|
|
1884
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1885
|
+
*
|
|
1886
|
+
* @unsupported
|
|
1887
|
+
* @implements DOM API: `Document`
|
|
1888
|
+
*/
|
|
1889
|
+
hasStorageAccess() {
|
|
1890
|
+
throw new unexpected_call_error_1.default('Not supported "hasStorageAccess" method');
|
|
1891
|
+
}
|
|
1892
|
+
/**
|
|
1893
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1894
|
+
*
|
|
1895
|
+
* @unsupported
|
|
1896
|
+
* @implements DOM API: `Document`
|
|
1897
|
+
*/
|
|
1898
|
+
importNode(node, deep) {
|
|
1899
|
+
throw new unexpected_call_error_1.default('Not supported "importNode" method');
|
|
1900
|
+
}
|
|
1901
|
+
/**
|
|
1902
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1903
|
+
*
|
|
1904
|
+
* @unsupported
|
|
1905
|
+
* @implements DOM API: `Document`
|
|
1906
|
+
*/
|
|
1907
|
+
open(url, name, features) {
|
|
1908
|
+
throw new unexpected_call_error_1.default('Not supported "open" method');
|
|
1909
|
+
}
|
|
1910
|
+
/**
|
|
1911
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1912
|
+
*
|
|
1913
|
+
* @deprecated
|
|
1914
|
+
* @unsupported
|
|
1915
|
+
* @implements DOM API: `Document`
|
|
1916
|
+
*/
|
|
1917
|
+
queryCommandEnabled(commandId) {
|
|
1918
|
+
throw new unexpected_call_error_1.default('Not supported "queryCommandEnabled" method');
|
|
1919
|
+
}
|
|
1920
|
+
/**
|
|
1921
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1922
|
+
*
|
|
1923
|
+
* @deprecated
|
|
1924
|
+
* @unsupported
|
|
1925
|
+
* @implements DOM API: `Document`
|
|
1926
|
+
*/
|
|
1927
|
+
queryCommandIndeterm(commandId) {
|
|
1928
|
+
throw new unexpected_call_error_1.default('Not supported "queryCommandIndeterm" method');
|
|
1929
|
+
}
|
|
1930
|
+
/**
|
|
1931
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1932
|
+
*
|
|
1933
|
+
* @deprecated
|
|
1934
|
+
* @unsupported
|
|
1935
|
+
* @implements DOM API: `Document`
|
|
1936
|
+
*/
|
|
1937
|
+
queryCommandState(commandId) {
|
|
1938
|
+
throw new unexpected_call_error_1.default('Not supported "queryCommandState" method');
|
|
1939
|
+
}
|
|
1940
|
+
/**
|
|
1941
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1942
|
+
*
|
|
1943
|
+
* @deprecated
|
|
1944
|
+
* @unsupported
|
|
1945
|
+
* @implements DOM API: `Document`
|
|
1946
|
+
*/
|
|
1947
|
+
queryCommandSupported(commandId) {
|
|
1948
|
+
throw new unexpected_call_error_1.default('Not supported "queryCommandSupported" method');
|
|
1949
|
+
}
|
|
1950
|
+
/**
|
|
1951
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1952
|
+
*
|
|
1953
|
+
* @deprecated
|
|
1954
|
+
* @unsupported
|
|
1955
|
+
* @implements DOM API: `Document`
|
|
1956
|
+
*/
|
|
1957
|
+
queryCommandValue(commandId) {
|
|
1958
|
+
throw new unexpected_call_error_1.default('Not supported "queryCommandValue" method');
|
|
1959
|
+
}
|
|
1960
|
+
/**
|
|
1961
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1962
|
+
*
|
|
1963
|
+
* @deprecated
|
|
1964
|
+
* @unsupported
|
|
1965
|
+
* @implements DOM API: `Document`
|
|
1966
|
+
*/
|
|
1967
|
+
releaseEvents() {
|
|
1968
|
+
throw new unexpected_call_error_1.default('Not supported "releaseEvents" method');
|
|
1969
|
+
}
|
|
1970
|
+
/**
|
|
1971
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1972
|
+
*
|
|
1973
|
+
* @unsupported
|
|
1974
|
+
* @implements DOM API: `Document`
|
|
1975
|
+
*/
|
|
1976
|
+
requestStorageAccess() {
|
|
1977
|
+
throw new unexpected_call_error_1.default('Not supported "requestStorageAccess" method');
|
|
1978
|
+
}
|
|
1979
|
+
/**
|
|
1980
|
+
* @implements `@markuplint/ml-core` API: `MLDocument`
|
|
1981
|
+
*/
|
|
1982
|
+
searchNodeByLocation(line, col) {
|
|
1983
|
+
for (const node of this.nodeList) {
|
|
1984
|
+
if (node.startLine <= line && line <= node.endLine && node.startCol <= col && col <= node.endCol) {
|
|
1985
|
+
return node;
|
|
1986
|
+
}
|
|
1987
|
+
}
|
|
1988
|
+
return null;
|
|
1989
|
+
}
|
|
1990
|
+
/**
|
|
1991
|
+
* @implements `@markuplint/ml-core` API: `MLDocument`
|
|
1992
|
+
*/
|
|
1993
|
+
setRule(rule) {
|
|
1994
|
+
this.currentRule = rule;
|
|
1995
|
+
}
|
|
1996
|
+
/**
|
|
1997
|
+
* @implements `@markuplint/ml-core` API: `MLDocument`
|
|
1998
|
+
*/
|
|
1999
|
+
toString() {
|
|
2000
|
+
const html = [];
|
|
2001
|
+
for (const node of this.getTokenList()) {
|
|
2002
|
+
html.push(node.toString());
|
|
2003
|
+
}
|
|
2004
|
+
return html.join('');
|
|
2005
|
+
}
|
|
2006
|
+
walkOn(type, walker, skipWhenRuleIsDisabled = true) {
|
|
2007
|
+
return (0, walkers_1.sequentialWalker)(this.nodeList, node => {
|
|
2008
|
+
if (skipWhenRuleIsDisabled && node.rule.disabled) {
|
|
2009
|
+
return;
|
|
2010
|
+
}
|
|
2011
|
+
if (type === 'Element' && node.is(node.ELEMENT_NODE)) {
|
|
2012
|
+
return walker(node);
|
|
2013
|
+
}
|
|
2014
|
+
if (type === 'Text' && node.is(node.TEXT_NODE)) {
|
|
2015
|
+
return walker(node);
|
|
2016
|
+
}
|
|
2017
|
+
if (type === 'Comment' && node.is(node.COMMENT_NODE)) {
|
|
2018
|
+
return walker(node);
|
|
2019
|
+
}
|
|
2020
|
+
if (type === 'Attr' && node.is(node.ELEMENT_NODE)) {
|
|
2021
|
+
return (0, walkers_1.sequentialWalker)(Array.from(node.attributes), attr => walker(attr));
|
|
2022
|
+
}
|
|
2023
|
+
if (type === 'ElementCloseTag' && node.is(node.ELEMENT_NODE) && node.closeTag) {
|
|
2024
|
+
return walker(node.closeTag);
|
|
2025
|
+
}
|
|
2026
|
+
});
|
|
2027
|
+
}
|
|
2028
|
+
/**
|
|
2029
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
2030
|
+
*
|
|
2031
|
+
* @unsupported
|
|
2032
|
+
* @implements DOM API: `Document`
|
|
2033
|
+
*/
|
|
2034
|
+
write(...text) {
|
|
2035
|
+
throw new unexpected_call_error_1.default('Not supported "write" method');
|
|
2036
|
+
}
|
|
2037
|
+
/**
|
|
2038
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
2039
|
+
*
|
|
2040
|
+
* @unsupported
|
|
2041
|
+
* @implements DOM API: `Document`
|
|
2042
|
+
*/
|
|
2043
|
+
writeln(...text) {
|
|
2044
|
+
throw new unexpected_call_error_1.default('Not supported "writeln" method');
|
|
2045
|
+
}
|
|
2046
|
+
_pretending(pretenders) {
|
|
2047
|
+
if (docLog.enabled) {
|
|
2048
|
+
docLog('Pretending: %O', pretenders);
|
|
2049
|
+
}
|
|
2050
|
+
if (!pretenders) {
|
|
2051
|
+
return;
|
|
2052
|
+
}
|
|
2053
|
+
for (const node of this.nodeList) {
|
|
2054
|
+
if (node.is(node.ELEMENT_NODE)) {
|
|
2055
|
+
node.pretending(pretenders);
|
|
2056
|
+
}
|
|
2057
|
+
}
|
|
2058
|
+
}
|
|
2059
|
+
_ruleMapping(ruleset) {
|
|
2060
|
+
if (docLog.enabled) {
|
|
2061
|
+
docLog('Rule Mapping: %O', Object.keys(ruleset.rules));
|
|
2062
|
+
}
|
|
2063
|
+
const ruleMapper = new rule_mapper_1.RuleMapper(this);
|
|
2064
|
+
// global rules to #document
|
|
2065
|
+
Object.keys(ruleset.rules).forEach(ruleName => {
|
|
2066
|
+
const rule = ruleset.rules[ruleName];
|
|
2067
|
+
ruleMapper.set(this, ruleName, {
|
|
2068
|
+
from: 'rules',
|
|
2069
|
+
specificity: [0, 0, 0],
|
|
2070
|
+
rule,
|
|
2071
|
+
});
|
|
2072
|
+
});
|
|
2073
|
+
// add rules to node
|
|
2074
|
+
for (const node of this.nodeList) {
|
|
2075
|
+
if (docLog.enabled) {
|
|
2076
|
+
docLog('Add rules to node <%s>', node.nodeName);
|
|
2077
|
+
}
|
|
2078
|
+
// global rules to each element
|
|
2079
|
+
Object.keys(ruleset.rules).forEach(ruleName => {
|
|
2080
|
+
const rule = ruleset.rules[ruleName];
|
|
2081
|
+
ruleMapper.set(node, ruleName, {
|
|
2082
|
+
from: 'rules',
|
|
2083
|
+
specificity: [0, 0, 0],
|
|
2084
|
+
rule,
|
|
2085
|
+
});
|
|
2086
|
+
});
|
|
2087
|
+
if (!node.is(node.ELEMENT_NODE) && !node.is(node.TEXT_NODE)) {
|
|
2088
|
+
continue;
|
|
2089
|
+
}
|
|
2090
|
+
const selectorTarget = node.is(node.ELEMENT_NODE) ? node : null;
|
|
2091
|
+
// node specs and special rules for node by selector
|
|
2092
|
+
ruleset.nodeRules.forEach(nodeRule => {
|
|
2093
|
+
if (!nodeRule.rules) {
|
|
2094
|
+
return;
|
|
2095
|
+
}
|
|
2096
|
+
if (!selectorTarget) {
|
|
2097
|
+
return;
|
|
2098
|
+
}
|
|
2099
|
+
const selector = nodeRule.selector || nodeRule.regexSelector;
|
|
2100
|
+
const matches = (0, selector_1.matchSelector)(selectorTarget, selector);
|
|
2101
|
+
if (!matches.matched) {
|
|
2102
|
+
return;
|
|
2103
|
+
}
|
|
2104
|
+
if (docLog.enabled) {
|
|
2105
|
+
docLog('Matched nodeRule: <%s>(%s)', node.nodeName, matches.selector || '*');
|
|
2106
|
+
}
|
|
2107
|
+
const ruleList = Object.keys(nodeRule.rules);
|
|
2108
|
+
for (const ruleName of ruleList) {
|
|
2109
|
+
const rule = nodeRule.rules[ruleName];
|
|
2110
|
+
const convertedRule = (0, ml_config_1.exchangeValueOnRule)(rule, matches.data || {});
|
|
2111
|
+
if (convertedRule === undefined) {
|
|
2112
|
+
continue;
|
|
2113
|
+
}
|
|
2114
|
+
const globalRule = ruleset.rules[ruleName];
|
|
2115
|
+
const mergedRule = globalRule ? (0, ml_config_1.mergeRule)(globalRule, convertedRule) : convertedRule;
|
|
2116
|
+
ruleLog('↑ nodeRule (%s): %O', ruleName, mergedRule);
|
|
2117
|
+
ruleMapper.set(node, ruleName, {
|
|
2118
|
+
from: 'nodeRules',
|
|
2119
|
+
specificity: matches.specificity,
|
|
2120
|
+
rule: mergedRule,
|
|
2121
|
+
});
|
|
2122
|
+
}
|
|
2123
|
+
});
|
|
2124
|
+
// overwrite rule to child node
|
|
2125
|
+
if (selectorTarget && ruleset.childNodeRules.length) {
|
|
2126
|
+
const descendants = [];
|
|
2127
|
+
const children = Array.from(selectorTarget.childNodes);
|
|
2128
|
+
(0, walkers_1.syncWalk)(children, childNode => {
|
|
2129
|
+
descendants.push(childNode);
|
|
2130
|
+
});
|
|
2131
|
+
ruleset.childNodeRules.forEach((nodeRule, i) => {
|
|
2132
|
+
if (!nodeRule.rules) {
|
|
2133
|
+
return;
|
|
2134
|
+
}
|
|
2135
|
+
const nodeRuleRules = nodeRule.rules;
|
|
2136
|
+
const selector = nodeRule.selector || nodeRule.regexSelector;
|
|
2137
|
+
if (!selector) {
|
|
2138
|
+
return;
|
|
2139
|
+
}
|
|
2140
|
+
const matches = (0, selector_1.matchSelector)(selectorTarget, selector);
|
|
2141
|
+
if (!matches.matched) {
|
|
2142
|
+
return;
|
|
2143
|
+
}
|
|
2144
|
+
if (docLog.enabled) {
|
|
2145
|
+
docLog('Matched childNodeRule: <%s>(%s), inheritance: %o', selectorTarget.nodeName, matches.selector || '*', !!nodeRule.inheritance);
|
|
2146
|
+
}
|
|
2147
|
+
const targetDescendants = nodeRule.inheritance ? descendants : children;
|
|
2148
|
+
Object.keys(nodeRuleRules).forEach(ruleName => {
|
|
2149
|
+
const rule = nodeRuleRules[ruleName];
|
|
2150
|
+
const convertedRule = (0, ml_config_1.exchangeValueOnRule)(rule, matches.data || {});
|
|
2151
|
+
if (convertedRule === undefined) {
|
|
2152
|
+
return;
|
|
2153
|
+
}
|
|
2154
|
+
const globalRule = ruleset.rules[ruleName];
|
|
2155
|
+
const mergedRule = globalRule ? (0, ml_config_1.mergeRule)(globalRule, convertedRule) : convertedRule;
|
|
2156
|
+
ruleLog('↑ childNodeRule (%s): %O', ruleName, mergedRule);
|
|
2157
|
+
targetDescendants.forEach(descendant => {
|
|
2158
|
+
ruleMapper.set(descendant, ruleName, {
|
|
2159
|
+
from: 'childNodeRules',
|
|
2160
|
+
specificity: matches.specificity,
|
|
2161
|
+
rule: mergedRule,
|
|
2162
|
+
});
|
|
2163
|
+
});
|
|
2164
|
+
});
|
|
2165
|
+
});
|
|
2166
|
+
}
|
|
2167
|
+
}
|
|
2168
|
+
ruleMapper.apply();
|
|
2169
|
+
}
|
|
2170
|
+
}
|
|
2171
|
+
exports.MLDocument = MLDocument;
|
|
2172
|
+
_MLDocument_filename = new WeakMap(), _MLDocument_tokenList = new WeakMap();
|