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