@webref/idl 3.46.1 → 3.47.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/DOM-Parsing.idl +0 -12
- package/css-nesting.idl +9 -0
- package/digital-identities.idl +2 -2
- package/dom.idl +6 -6
- package/html.idl +6 -1
- package/package.json +1 -1
- package/sanitizer-api.idl +11 -0
- package/service-workers.idl +1 -0
- package/shared-storage.idl +21 -30
- package/trusted-types.idl +3 -3
- package/webrtc-encoded-transform.idl +10 -0
- package/webrtc.idl +1 -1
- package/webxr.idl +1 -0
package/DOM-Parsing.idl
CHANGED
|
@@ -9,18 +9,6 @@ interface XMLSerializer {
|
|
|
9
9
|
DOMString serializeToString(Node root);
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
-
interface mixin InnerHTML {
|
|
13
|
-
[CEReactions] attribute [LegacyNullToEmptyString] HTMLString innerHTML;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
Element includes InnerHTML;
|
|
17
|
-
ShadowRoot includes InnerHTML;
|
|
18
|
-
|
|
19
|
-
partial interface Element {
|
|
20
|
-
[CEReactions] attribute [LegacyNullToEmptyString] HTMLString outerHTML;
|
|
21
|
-
[CEReactions] undefined insertAdjacentHTML(DOMString position, HTMLString text);
|
|
22
|
-
};
|
|
23
|
-
|
|
24
12
|
partial interface Range {
|
|
25
13
|
[CEReactions, NewObject] DocumentFragment createContextualFragment(HTMLString fragment);
|
|
26
14
|
};
|
package/css-nesting.idl
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// GENERATED CONTENT - DO NOT EDIT
|
|
2
|
+
// Content was automatically extracted by Reffy into webref
|
|
3
|
+
// (https://github.com/w3c/webref)
|
|
4
|
+
// Source: CSS Nesting Module (https://drafts.csswg.org/css-nesting-1/)
|
|
5
|
+
|
|
6
|
+
[Exposed=Window]
|
|
7
|
+
interface CSSNestRule : CSSGroupingRule {
|
|
8
|
+
[SameObject, PutForwards=cssText] readonly attribute CSSStyleProperties style;
|
|
9
|
+
};
|
package/digital-identities.idl
CHANGED
|
@@ -17,11 +17,11 @@ dictionary DigitalCredentialRequestOptions {
|
|
|
17
17
|
|
|
18
18
|
dictionary IdentityRequestProvider {
|
|
19
19
|
required DOMString protocol;
|
|
20
|
-
required
|
|
20
|
+
required object request;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
[Exposed=Window, SecureContext]
|
|
24
24
|
interface DigitalCredential : Credential {
|
|
25
25
|
readonly attribute DOMString protocol;
|
|
26
|
-
readonly attribute
|
|
26
|
+
[SameObject] readonly attribute Uint8Array data;
|
|
27
27
|
};
|
package/dom.idl
CHANGED
|
@@ -120,9 +120,9 @@ interface mixin ParentNode {
|
|
|
120
120
|
readonly attribute Element? lastElementChild;
|
|
121
121
|
readonly attribute unsigned long childElementCount;
|
|
122
122
|
|
|
123
|
-
[CEReactions, Unscopable] undefined prepend((Node or DOMString)... nodes);
|
|
124
|
-
[CEReactions, Unscopable] undefined append((Node or DOMString)... nodes);
|
|
125
|
-
[CEReactions, Unscopable] undefined replaceChildren((Node or DOMString)... nodes);
|
|
123
|
+
[CEReactions, Unscopable] undefined prepend((Node or TrustedScript or DOMString)... nodes);
|
|
124
|
+
[CEReactions, Unscopable] undefined append((Node or TrustedScript or DOMString)... nodes);
|
|
125
|
+
[CEReactions, Unscopable] undefined replaceChildren((Node or TrustedScript or DOMString)... nodes);
|
|
126
126
|
|
|
127
127
|
Element? querySelector(DOMString selectors);
|
|
128
128
|
[NewObject] NodeList querySelectorAll(DOMString selectors);
|
|
@@ -139,9 +139,9 @@ Element includes NonDocumentTypeChildNode;
|
|
|
139
139
|
CharacterData includes NonDocumentTypeChildNode;
|
|
140
140
|
|
|
141
141
|
interface mixin ChildNode {
|
|
142
|
-
[CEReactions, Unscopable] undefined before((Node or DOMString)... nodes);
|
|
143
|
-
[CEReactions, Unscopable] undefined after((Node or DOMString)... nodes);
|
|
144
|
-
[CEReactions, Unscopable] undefined replaceWith((Node or DOMString)... nodes);
|
|
142
|
+
[CEReactions, Unscopable] undefined before((Node or TrustedScript or DOMString)... nodes);
|
|
143
|
+
[CEReactions, Unscopable] undefined after((Node or TrustedScript or DOMString)... nodes);
|
|
144
|
+
[CEReactions, Unscopable] undefined replaceWith((Node or TrustedScript or DOMString)... nodes);
|
|
145
145
|
[CEReactions, Unscopable] undefined remove();
|
|
146
146
|
};
|
|
147
147
|
DocumentType includes ChildNode;
|
package/html.idl
CHANGED
|
@@ -1580,7 +1580,6 @@ interface OffscreenCanvas : EventTarget {
|
|
|
1580
1580
|
|
|
1581
1581
|
[Exposed=(Window,Worker)]
|
|
1582
1582
|
interface OffscreenCanvasRenderingContext2D {
|
|
1583
|
-
undefined commit();
|
|
1584
1583
|
readonly attribute OffscreenCanvas canvas;
|
|
1585
1584
|
};
|
|
1586
1585
|
|
|
@@ -2296,11 +2295,17 @@ WorkerGlobalScope includes WindowOrWorkerGlobalScope;
|
|
|
2296
2295
|
partial interface Element {
|
|
2297
2296
|
[CEReactions] undefined setHTMLUnsafe(HTMLString html);
|
|
2298
2297
|
DOMString getHTML(optional GetHTMLOptions options = {});
|
|
2298
|
+
|
|
2299
|
+
[CEReactions] attribute [LegacyNullToEmptyString] HTMLString innerHTML;
|
|
2300
|
+
[CEReactions] attribute [LegacyNullToEmptyString] HTMLString outerHTML;
|
|
2301
|
+
[CEReactions] undefined insertAdjacentHTML(DOMString position, HTMLString string);
|
|
2299
2302
|
};
|
|
2300
2303
|
|
|
2301
2304
|
partial interface ShadowRoot {
|
|
2302
2305
|
[CEReactions] undefined setHTMLUnsafe(HTMLString html);
|
|
2303
2306
|
DOMString getHTML(optional GetHTMLOptions options = {});
|
|
2307
|
+
|
|
2308
|
+
[CEReactions] attribute [LegacyNullToEmptyString] HTMLString innerHTML;
|
|
2304
2309
|
};
|
|
2305
2310
|
|
|
2306
2311
|
dictionary GetHTMLOptions {
|
package/package.json
CHANGED
package/sanitizer-api.idl
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
// (https://github.com/w3c/webref)
|
|
4
4
|
// Source: HTML Sanitizer API (https://wicg.github.io/sanitizer-api/)
|
|
5
5
|
|
|
6
|
+
dictionary SetHTMLOptions {
|
|
7
|
+
(Sanitizer or SanitizerConfig) sanitizer = {};
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
[Exposed=(Window,Worker)]
|
|
11
|
+
interface Sanitizer {
|
|
12
|
+
constructor(optional SanitizerConfig config = {});
|
|
13
|
+
SanitizerConfig get();
|
|
14
|
+
SanitizerConfig getUnsafe();
|
|
15
|
+
};
|
|
16
|
+
|
|
6
17
|
dictionary SanitizerElementNamespace {
|
|
7
18
|
required DOMString name;
|
|
8
19
|
DOMString? _namespace = "http://www.w3.org/1999/xhtml";
|
package/service-workers.idl
CHANGED
package/shared-storage.idl
CHANGED
|
@@ -3,40 +3,30 @@
|
|
|
3
3
|
// (https://github.com/w3c/webref)
|
|
4
4
|
// Source: Shared Storage API (https://wicg.github.io/shared-storage/)
|
|
5
5
|
|
|
6
|
+
typedef (USVString or FencedFrameConfig) SharedStorageResponse;
|
|
7
|
+
|
|
6
8
|
[Exposed=(Window)]
|
|
7
9
|
interface SharedStorageWorklet : Worklet {
|
|
10
|
+
Promise<SharedStorageResponse> selectURL(DOMString name,
|
|
11
|
+
FrozenArray<SharedStorageUrlWithMetadata> urls,
|
|
12
|
+
optional SharedStorageRunOperationMethodOptions options = {});
|
|
13
|
+
Promise<any> run(DOMString name,
|
|
14
|
+
optional SharedStorageRunOperationMethodOptions options = {});
|
|
8
15
|
};
|
|
9
16
|
|
|
17
|
+
callback RunFunctionForSharedStorageSelectURLOperation = Promise<unsigned long>(sequence<USVString> urls, optional any data);
|
|
18
|
+
|
|
10
19
|
[Exposed=SharedStorageWorklet, Global=SharedStorageWorklet]
|
|
11
20
|
interface SharedStorageWorkletGlobalScope : WorkletGlobalScope {
|
|
12
21
|
undefined register(DOMString name,
|
|
13
|
-
|
|
22
|
+
Function operationCtor);
|
|
14
23
|
|
|
15
24
|
readonly attribute WorkletSharedStorage sharedStorage;
|
|
16
25
|
};
|
|
17
26
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
[Exposed=SharedStorageWorklet]
|
|
22
|
-
interface SharedStorageOperation {
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
dictionary SharedStorageRunOperationMethodOptions {
|
|
26
|
-
object data;
|
|
27
|
-
boolean resolveToConfig = false;
|
|
28
|
-
boolean keepAlive = false;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
[Exposed=SharedStorageWorklet]
|
|
32
|
-
interface SharedStorageRunOperation : SharedStorageOperation {
|
|
33
|
-
Promise<undefined> run(object data);
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
[Exposed=SharedStorageWorklet]
|
|
37
|
-
interface SharedStorageSelectURLOperation : SharedStorageOperation {
|
|
38
|
-
Promise<long> run(object data,
|
|
39
|
-
FrozenArray<SharedStorageUrlWithMetadata> urls);
|
|
27
|
+
dictionary SharedStorageUrlWithMetadata {
|
|
28
|
+
required USVString url;
|
|
29
|
+
object reportingMetadata;
|
|
40
30
|
};
|
|
41
31
|
|
|
42
32
|
[Exposed=(Window,SharedStorageWorklet)]
|
|
@@ -54,22 +44,23 @@ dictionary SharedStorageSetMethodOptions {
|
|
|
54
44
|
boolean ignoreIfPresent = false;
|
|
55
45
|
};
|
|
56
46
|
|
|
57
|
-
typedef (USVString or FencedFrameConfig) SharedStorageResponse;
|
|
58
|
-
|
|
59
47
|
[Exposed=(Window)]
|
|
60
48
|
interface WindowSharedStorage : SharedStorage {
|
|
61
|
-
Promise<any> run(DOMString name,
|
|
62
|
-
optional SharedStorageRunOperationMethodOptions options = {});
|
|
63
49
|
Promise<SharedStorageResponse> selectURL(DOMString name,
|
|
64
50
|
FrozenArray<SharedStorageUrlWithMetadata> urls,
|
|
65
51
|
optional SharedStorageRunOperationMethodOptions options = {});
|
|
52
|
+
Promise<any> run(DOMString name,
|
|
53
|
+
optional SharedStorageRunOperationMethodOptions options = {});
|
|
54
|
+
|
|
55
|
+
Promise<SharedStorageWorklet> createWorklet(USVString moduleURL, optional WorkletOptions options = {});
|
|
66
56
|
|
|
67
57
|
readonly attribute SharedStorageWorklet worklet;
|
|
68
58
|
};
|
|
69
59
|
|
|
70
|
-
dictionary
|
|
71
|
-
|
|
72
|
-
|
|
60
|
+
dictionary SharedStorageRunOperationMethodOptions {
|
|
61
|
+
object data;
|
|
62
|
+
boolean resolveToConfig = false;
|
|
63
|
+
boolean keepAlive = false;
|
|
73
64
|
};
|
|
74
65
|
|
|
75
66
|
partial interface Window {
|
package/trusted-types.idl
CHANGED
|
@@ -32,12 +32,12 @@ interface TrustedScriptURL {
|
|
|
32
32
|
DOMString? getAttributeType(
|
|
33
33
|
DOMString tagName,
|
|
34
34
|
DOMString attribute,
|
|
35
|
-
optional DOMString elementNs = "",
|
|
36
|
-
optional DOMString attrNs = "");
|
|
35
|
+
optional DOMString? elementNs = "",
|
|
36
|
+
optional DOMString? attrNs = "");
|
|
37
37
|
DOMString? getPropertyType(
|
|
38
38
|
DOMString tagName,
|
|
39
39
|
DOMString property,
|
|
40
|
-
optional DOMString elementNs = "");
|
|
40
|
+
optional DOMString? elementNs = "");
|
|
41
41
|
readonly attribute TrustedTypePolicy? defaultPolicy;
|
|
42
42
|
};
|
|
43
43
|
|
|
@@ -78,10 +78,15 @@ dictionary RTCEncodedVideoFrameMetadata {
|
|
|
78
78
|
DOMString mimeType;
|
|
79
79
|
};
|
|
80
80
|
|
|
81
|
+
dictionary RTCEncodedVideoFrameOptions {
|
|
82
|
+
RTCEncodedVideoFrameMetadata metadata;
|
|
83
|
+
};
|
|
84
|
+
|
|
81
85
|
// New interfaces to define encoded video and audio frames. Will eventually
|
|
82
86
|
// re-use or extend the equivalent defined in WebCodecs.
|
|
83
87
|
[Exposed=(Window,DedicatedWorker), Serializable]
|
|
84
88
|
interface RTCEncodedVideoFrame {
|
|
89
|
+
constructor(RTCEncodedVideoFrame originalFrame, optional RTCEncodedVideoFrameOptions options = {});
|
|
85
90
|
readonly attribute RTCEncodedVideoFrameType type;
|
|
86
91
|
attribute ArrayBuffer data;
|
|
87
92
|
RTCEncodedVideoFrameMetadata getMetadata();
|
|
@@ -96,8 +101,13 @@ dictionary RTCEncodedAudioFrameMetadata {
|
|
|
96
101
|
DOMString mimeType;
|
|
97
102
|
};
|
|
98
103
|
|
|
104
|
+
dictionary RTCEncodedAudioFrameOptions {
|
|
105
|
+
RTCEncodedAudioFrameMetadata metadata;
|
|
106
|
+
};
|
|
107
|
+
|
|
99
108
|
[Exposed=(Window,DedicatedWorker), Serializable]
|
|
100
109
|
interface RTCEncodedAudioFrame {
|
|
110
|
+
constructor(RTCEncodedAudioFrame originalFrame, optional RTCEncodedAudioFrameOptions options = {});
|
|
101
111
|
attribute ArrayBuffer data;
|
|
102
112
|
RTCEncodedAudioFrameMetadata getMetadata();
|
|
103
113
|
};
|
package/webrtc.idl
CHANGED
|
@@ -388,7 +388,7 @@ interface RTCRtpTransceiver {
|
|
|
388
388
|
attribute RTCRtpTransceiverDirection direction;
|
|
389
389
|
readonly attribute RTCRtpTransceiverDirection? currentDirection;
|
|
390
390
|
undefined stop();
|
|
391
|
-
undefined setCodecPreferences(sequence<
|
|
391
|
+
undefined setCodecPreferences(sequence<RTCRtpCodec> codecs);
|
|
392
392
|
};
|
|
393
393
|
|
|
394
394
|
[Exposed=Window]
|
package/webxr.idl
CHANGED
|
@@ -178,6 +178,7 @@ interface XRInputSource {
|
|
|
178
178
|
[SameObject] readonly attribute XRSpace targetRaySpace;
|
|
179
179
|
[SameObject] readonly attribute XRSpace? gripSpace;
|
|
180
180
|
[SameObject] readonly attribute FrozenArray<DOMString> profiles;
|
|
181
|
+
[SameObject] readonly attribute boolean skipRendering;
|
|
181
182
|
};
|
|
182
183
|
|
|
183
184
|
[SecureContext, Exposed=Window]
|