@webref/idl 3.79.0 → 3.80.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/html.idl +76 -3
- package/package.json +1 -1
- package/webmcp.idl +2 -2
- package/webxrlayers.idl +0 -2
- package/sanitizer-api.idl +0 -87
package/html.idl
CHANGED
|
@@ -48,7 +48,8 @@ typedef (HTMLScriptElement or SVGScriptElement) HTMLOrSVGScriptElement;
|
|
|
48
48
|
|
|
49
49
|
[LegacyOverrideBuiltIns]
|
|
50
50
|
partial interface Document {
|
|
51
|
-
static Document parseHTMLUnsafe((TrustedHTML or DOMString) html);
|
|
51
|
+
static Document parseHTMLUnsafe((TrustedHTML or DOMString) html, optional SetHTMLUnsafeOptions options = {});
|
|
52
|
+
static Document parseHTML(DOMString html, optional SetHTMLOptions options = {});
|
|
52
53
|
|
|
53
54
|
// resource metadata management
|
|
54
55
|
[PutForwards=href, LegacyUnforgeable] readonly attribute Location? location;
|
|
@@ -2361,7 +2362,8 @@ Window includes WindowOrWorkerGlobalScope;
|
|
|
2361
2362
|
WorkerGlobalScope includes WindowOrWorkerGlobalScope;
|
|
2362
2363
|
|
|
2363
2364
|
partial interface Element {
|
|
2364
|
-
[CEReactions] undefined
|
|
2365
|
+
[CEReactions] undefined setHTML(DOMString html, optional SetHTMLOptions options = {});
|
|
2366
|
+
[CEReactions] undefined setHTMLUnsafe((TrustedHTML or DOMString) html, optional SetHTMLUnsafeOptions options = {});
|
|
2365
2367
|
DOMString getHTML(optional GetHTMLOptions options = {});
|
|
2366
2368
|
|
|
2367
2369
|
[CEReactions] attribute (TrustedHTML or [LegacyNullToEmptyString] DOMString) innerHTML;
|
|
@@ -2370,12 +2372,21 @@ partial interface Element {
|
|
|
2370
2372
|
};
|
|
2371
2373
|
|
|
2372
2374
|
partial interface ShadowRoot {
|
|
2373
|
-
[CEReactions] undefined
|
|
2375
|
+
[CEReactions] undefined setHTML(DOMString html, optional SetHTMLOptions options = {});
|
|
2376
|
+
[CEReactions] undefined setHTMLUnsafe((TrustedHTML or DOMString) html, optional SetHTMLUnsafeOptions options = {});
|
|
2374
2377
|
DOMString getHTML(optional GetHTMLOptions options = {});
|
|
2375
2378
|
|
|
2376
2379
|
[CEReactions] attribute (TrustedHTML or [LegacyNullToEmptyString] DOMString) innerHTML;
|
|
2377
2380
|
};
|
|
2378
2381
|
|
|
2382
|
+
enum SanitizerPresets { "default" };
|
|
2383
|
+
dictionary SetHTMLOptions {
|
|
2384
|
+
(Sanitizer or SanitizerConfig or SanitizerPresets) sanitizer = "default";
|
|
2385
|
+
};
|
|
2386
|
+
dictionary SetHTMLUnsafeOptions {
|
|
2387
|
+
(Sanitizer or SanitizerConfig or SanitizerPresets) sanitizer = {};
|
|
2388
|
+
};
|
|
2389
|
+
|
|
2379
2390
|
dictionary GetHTMLOptions {
|
|
2380
2391
|
boolean serializableShadowRoots = false;
|
|
2381
2392
|
sequence<ShadowRoot> shadowRoots = [];
|
|
@@ -2407,6 +2418,68 @@ interface XMLSerializer {
|
|
|
2407
2418
|
DOMString serializeToString(Node root);
|
|
2408
2419
|
};
|
|
2409
2420
|
|
|
2421
|
+
[Exposed=Window]
|
|
2422
|
+
interface Sanitizer {
|
|
2423
|
+
constructor(optional (SanitizerConfig or SanitizerPresets) configuration = "default");
|
|
2424
|
+
|
|
2425
|
+
// Query configuration:
|
|
2426
|
+
SanitizerConfig get();
|
|
2427
|
+
|
|
2428
|
+
// Modify a Sanitizer's lists and fields:
|
|
2429
|
+
boolean allowElement(SanitizerElementWithAttributes element);
|
|
2430
|
+
boolean removeElement(SanitizerElement element);
|
|
2431
|
+
boolean replaceElementWithChildren(SanitizerElement element);
|
|
2432
|
+
boolean allowProcessingInstruction(SanitizerPI pi);
|
|
2433
|
+
boolean removeProcessingInstruction(SanitizerPI pi);
|
|
2434
|
+
boolean allowAttribute(SanitizerAttribute attribute);
|
|
2435
|
+
boolean removeAttribute(SanitizerAttribute attribute);
|
|
2436
|
+
boolean setComments(boolean allow);
|
|
2437
|
+
boolean setDataAttributes(boolean allow);
|
|
2438
|
+
|
|
2439
|
+
// Remove markup that executes script.
|
|
2440
|
+
boolean removeUnsafe();
|
|
2441
|
+
};
|
|
2442
|
+
|
|
2443
|
+
dictionary SanitizerElementNamespace {
|
|
2444
|
+
required DOMString name;
|
|
2445
|
+
DOMString? _namespace = "http://www.w3.org/1999/xhtml";
|
|
2446
|
+
};
|
|
2447
|
+
|
|
2448
|
+
// Used by "elements"
|
|
2449
|
+
dictionary SanitizerElementNamespaceWithAttributes : SanitizerElementNamespace {
|
|
2450
|
+
sequence<SanitizerAttribute> attributes;
|
|
2451
|
+
sequence<SanitizerAttribute> removeAttributes;
|
|
2452
|
+
};
|
|
2453
|
+
|
|
2454
|
+
dictionary SanitizerAttributeNamespace {
|
|
2455
|
+
required DOMString name;
|
|
2456
|
+
DOMString? _namespace = null;
|
|
2457
|
+
};
|
|
2458
|
+
|
|
2459
|
+
dictionary SanitizerProcessingInstruction {
|
|
2460
|
+
required DOMString target;
|
|
2461
|
+
};
|
|
2462
|
+
|
|
2463
|
+
typedef (DOMString or SanitizerElementNamespace) SanitizerElement;
|
|
2464
|
+
typedef (DOMString or SanitizerElementNamespaceWithAttributes) SanitizerElementWithAttributes;
|
|
2465
|
+
typedef (DOMString or SanitizerProcessingInstruction) SanitizerPI;
|
|
2466
|
+
typedef (DOMString or SanitizerAttributeNamespace) SanitizerAttribute;
|
|
2467
|
+
|
|
2468
|
+
dictionary SanitizerConfig {
|
|
2469
|
+
sequence<SanitizerElementWithAttributes> elements;
|
|
2470
|
+
sequence<SanitizerElement> removeElements;
|
|
2471
|
+
sequence<SanitizerElement> replaceWithChildrenElements;
|
|
2472
|
+
|
|
2473
|
+
sequence<SanitizerPI> processingInstructions;
|
|
2474
|
+
sequence<SanitizerPI> removeProcessingInstructions;
|
|
2475
|
+
|
|
2476
|
+
sequence<SanitizerAttribute> attributes;
|
|
2477
|
+
sequence<SanitizerAttribute> removeAttributes;
|
|
2478
|
+
|
|
2479
|
+
boolean comments;
|
|
2480
|
+
boolean dataAttributes;
|
|
2481
|
+
};
|
|
2482
|
+
|
|
2410
2483
|
[Exposed=Window]
|
|
2411
2484
|
interface Navigator {
|
|
2412
2485
|
// objects implementing this interface also implement the interfaces given below
|
package/package.json
CHANGED
package/webmcp.idl
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
// (https://github.com/w3c/webref)
|
|
4
4
|
// Source: WebMCP (https://webmachinelearning.github.io/webmcp/)
|
|
5
5
|
|
|
6
|
-
partial interface
|
|
7
|
-
[SecureContext] readonly attribute ModelContext modelContext;
|
|
6
|
+
partial interface Document {
|
|
7
|
+
[SecureContext, SameObject] readonly attribute ModelContext modelContext;
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
[Exposed=Window, SecureContext]
|
package/webxrlayers.idl
CHANGED
|
@@ -99,8 +99,6 @@ enum XRLayerQuality {
|
|
|
99
99
|
readonly attribute unsigned long colorTextureHeight;
|
|
100
100
|
readonly attribute unsigned long? depthStencilTextureWidth;
|
|
101
101
|
readonly attribute unsigned long? depthStencilTextureHeight;
|
|
102
|
-
readonly attribute unsigned long? motionVectorTextureWidth;
|
|
103
|
-
readonly attribute unsigned long? motionVectorTextureHeight;
|
|
104
102
|
};
|
|
105
103
|
|
|
106
104
|
enum XRTextureType {
|
package/sanitizer-api.idl
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
// GENERATED CONTENT - DO NOT EDIT
|
|
2
|
-
// Content was automatically extracted by Reffy into webref
|
|
3
|
-
// (https://github.com/w3c/webref)
|
|
4
|
-
// Source: HTML Sanitizer API (https://wicg.github.io/sanitizer-api/)
|
|
5
|
-
|
|
6
|
-
partial interface Element {
|
|
7
|
-
[CEReactions] undefined setHTML(DOMString html, optional SetHTMLOptions options = {});
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
partial interface ShadowRoot {
|
|
11
|
-
[CEReactions] undefined setHTML(DOMString html, optional SetHTMLOptions options = {});
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
partial interface Document {
|
|
15
|
-
static Document parseHTML(DOMString html, optional SetHTMLOptions options = {});
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
enum SanitizerPresets { "default" };
|
|
19
|
-
dictionary SetHTMLOptions {
|
|
20
|
-
(Sanitizer or SanitizerConfig or SanitizerPresets) sanitizer = "default";
|
|
21
|
-
};
|
|
22
|
-
dictionary SetHTMLUnsafeOptions {
|
|
23
|
-
(Sanitizer or SanitizerConfig or SanitizerPresets) sanitizer = {};
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
[Exposed=Window]
|
|
27
|
-
interface Sanitizer {
|
|
28
|
-
constructor(optional (SanitizerConfig or SanitizerPresets) configuration = "default");
|
|
29
|
-
|
|
30
|
-
// Query configuration:
|
|
31
|
-
SanitizerConfig get();
|
|
32
|
-
|
|
33
|
-
// Modify a Sanitizer's lists and fields:
|
|
34
|
-
boolean allowElement(SanitizerElementWithAttributes element);
|
|
35
|
-
boolean removeElement(SanitizerElement element);
|
|
36
|
-
boolean replaceElementWithChildren(SanitizerElement element);
|
|
37
|
-
boolean allowProcessingInstruction(SanitizerPI pi);
|
|
38
|
-
boolean removeProcessingInstruction(SanitizerPI pi);
|
|
39
|
-
boolean allowAttribute(SanitizerAttribute attribute);
|
|
40
|
-
boolean removeAttribute(SanitizerAttribute attribute);
|
|
41
|
-
boolean setComments(boolean allow);
|
|
42
|
-
boolean setDataAttributes(boolean allow);
|
|
43
|
-
|
|
44
|
-
// Remove markup that executes script.
|
|
45
|
-
boolean removeUnsafe();
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
dictionary SanitizerElementNamespace {
|
|
49
|
-
required DOMString name;
|
|
50
|
-
DOMString? _namespace = "http://www.w3.org/1999/xhtml";
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
// Used by "elements"
|
|
54
|
-
dictionary SanitizerElementNamespaceWithAttributes : SanitizerElementNamespace {
|
|
55
|
-
sequence<SanitizerAttribute> attributes;
|
|
56
|
-
sequence<SanitizerAttribute> removeAttributes;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
typedef (DOMString or SanitizerElementNamespace) SanitizerElement;
|
|
60
|
-
typedef (DOMString or SanitizerElementNamespaceWithAttributes) SanitizerElementWithAttributes;
|
|
61
|
-
|
|
62
|
-
dictionary SanitizerProcessingInstruction {
|
|
63
|
-
required DOMString target;
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
typedef (DOMString or SanitizerProcessingInstruction) SanitizerPI;
|
|
67
|
-
|
|
68
|
-
dictionary SanitizerAttributeNamespace {
|
|
69
|
-
required DOMString name;
|
|
70
|
-
DOMString? _namespace = null;
|
|
71
|
-
};
|
|
72
|
-
typedef (DOMString or SanitizerAttributeNamespace) SanitizerAttribute;
|
|
73
|
-
|
|
74
|
-
dictionary SanitizerConfig {
|
|
75
|
-
sequence<SanitizerElementWithAttributes> elements;
|
|
76
|
-
sequence<SanitizerElement> removeElements;
|
|
77
|
-
sequence<SanitizerElement> replaceWithChildrenElements;
|
|
78
|
-
|
|
79
|
-
sequence<SanitizerPI> processingInstructions;
|
|
80
|
-
sequence<SanitizerPI> removeProcessingInstructions;
|
|
81
|
-
|
|
82
|
-
sequence<SanitizerAttribute> attributes;
|
|
83
|
-
sequence<SanitizerAttribute> removeAttributes;
|
|
84
|
-
|
|
85
|
-
boolean comments;
|
|
86
|
-
boolean dataAttributes;
|
|
87
|
-
};
|