@webref/idl 3.46.0 → 3.46.2
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 +3 -10
- package/compute-pressure.idl +2 -2
- package/css-anchor-position.idl +75 -1
- package/css-view-transitions-2.idl +1 -1
- package/digital-identities.idl +2 -2
- package/document-picture-in-picture.idl +1 -1
- package/dom.idl +2 -0
- package/html.idl +20 -8
- package/mediasession.idl +15 -0
- package/package.json +1 -1
- package/sanitizer-api.idl +7 -11
- package/service-workers.idl +1 -0
- package/shape-detection-api.idl +3 -3
- package/text-detection-api.idl +1 -1
- package/trusted-types.idl +3 -3
- package/turtledove.idl +1 -0
- package/wasm-js-api.idl +2 -0
- package/webcodecs.idl +2 -0
- package/webidl.idl +1 -1
- package/webnn.idl +5 -0
- package/webrtc.idl +1 -0
- package/webxr.idl +3 -2
package/DOM-Parsing.idl
CHANGED
|
@@ -9,18 +9,11 @@ interface XMLSerializer {
|
|
|
9
9
|
DOMString serializeToString(Node root);
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
-
interface mixin InnerHTML {
|
|
13
|
-
[CEReactions] attribute [LegacyNullToEmptyString] DOMString innerHTML;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
Element includes InnerHTML;
|
|
17
|
-
ShadowRoot includes InnerHTML;
|
|
18
|
-
|
|
19
12
|
partial interface Element {
|
|
20
|
-
[CEReactions] attribute [LegacyNullToEmptyString]
|
|
21
|
-
[CEReactions] undefined insertAdjacentHTML(DOMString position,
|
|
13
|
+
[CEReactions] attribute [LegacyNullToEmptyString] HTMLString outerHTML;
|
|
14
|
+
[CEReactions] undefined insertAdjacentHTML(DOMString position, HTMLString text);
|
|
22
15
|
};
|
|
23
16
|
|
|
24
17
|
partial interface Range {
|
|
25
|
-
[CEReactions, NewObject] DocumentFragment createContextualFragment(
|
|
18
|
+
[CEReactions, NewObject] DocumentFragment createContextualFragment(HTMLString fragment);
|
|
26
19
|
};
|
package/compute-pressure.idl
CHANGED
|
@@ -14,9 +14,9 @@ callback PressureUpdateCallback = undefined (
|
|
|
14
14
|
|
|
15
15
|
[Exposed=(DedicatedWorker,SharedWorker,Window), SecureContext]
|
|
16
16
|
interface PressureObserver {
|
|
17
|
-
constructor(PressureUpdateCallback callback
|
|
17
|
+
constructor(PressureUpdateCallback callback);
|
|
18
18
|
|
|
19
|
-
Promise<undefined> observe(PressureSource source);
|
|
19
|
+
Promise<undefined> observe(PressureSource source, optional PressureObserverOptions options = {});
|
|
20
20
|
undefined unobserve(PressureSource source);
|
|
21
21
|
undefined disconnect();
|
|
22
22
|
sequence<PressureRecord> takeRecords();
|
package/css-anchor-position.idl
CHANGED
|
@@ -6,5 +6,79 @@
|
|
|
6
6
|
[Exposed=Window]
|
|
7
7
|
interface CSSPositionTryRule : CSSRule {
|
|
8
8
|
readonly attribute CSSOMString name;
|
|
9
|
-
[SameObject, PutForwards=cssText] readonly attribute
|
|
9
|
+
[SameObject, PutForwards=cssText] readonly attribute CSSPositionTryDescriptors style;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
[Exposed=Window]
|
|
13
|
+
interface CSSPositionTryDescriptors : CSSStyleDeclaration {
|
|
14
|
+
attribute CSSOMString margin;
|
|
15
|
+
attribute CSSOMString marginTop;
|
|
16
|
+
attribute CSSOMString marginRight;
|
|
17
|
+
attribute CSSOMString marginBottom;
|
|
18
|
+
attribute CSSOMString marginLeft;
|
|
19
|
+
attribute CSSOMString marginBlock;
|
|
20
|
+
attribute CSSOMString marginBlockStart;
|
|
21
|
+
attribute CSSOMString marginBlockEnd;
|
|
22
|
+
attribute CSSOMString marginInline;
|
|
23
|
+
attribute CSSOMString marginInlineStart;
|
|
24
|
+
attribute CSSOMString marginInlineEnd;
|
|
25
|
+
attribute CSSOMString margin-top;
|
|
26
|
+
attribute CSSOMString margin-right;
|
|
27
|
+
attribute CSSOMString margin-bottom;
|
|
28
|
+
attribute CSSOMString margin-left;
|
|
29
|
+
attribute CSSOMString margin-block;
|
|
30
|
+
attribute CSSOMString margin-block-start;
|
|
31
|
+
attribute CSSOMString margin-block-end;
|
|
32
|
+
attribute CSSOMString margin-inline;
|
|
33
|
+
attribute CSSOMString margin-inline-start;
|
|
34
|
+
attribute CSSOMString margin-inline-end;
|
|
35
|
+
attribute CSSOMString inset;
|
|
36
|
+
attribute CSSOMString insetBlock;
|
|
37
|
+
attribute CSSOMString insetBlockStart;
|
|
38
|
+
attribute CSSOMString insetBlockEnd;
|
|
39
|
+
attribute CSSOMString insetInline;
|
|
40
|
+
attribute CSSOMString insetInlineStart;
|
|
41
|
+
attribute CSSOMString insetInlineEnd;
|
|
42
|
+
attribute CSSOMString top;
|
|
43
|
+
attribute CSSOMString left;
|
|
44
|
+
attribute CSSOMString right;
|
|
45
|
+
attribute CSSOMString bottom;
|
|
46
|
+
attribute CSSOMString inset-block;
|
|
47
|
+
attribute CSSOMString inset-block-start;
|
|
48
|
+
attribute CSSOMString inset-block-end;
|
|
49
|
+
attribute CSSOMString inset-inline;
|
|
50
|
+
attribute CSSOMString inset-inline-start;
|
|
51
|
+
attribute CSSOMString inset-inline-end;
|
|
52
|
+
attribute CSSOMString width;
|
|
53
|
+
attribute CSSOMString minWidth;
|
|
54
|
+
attribute CSSOMString maxWidth;
|
|
55
|
+
attribute CSSOMString height;
|
|
56
|
+
attribute CSSOMString minHeight;
|
|
57
|
+
attribute CSSOMString maxHeight;
|
|
58
|
+
attribute CSSOMString blockSize;
|
|
59
|
+
attribute CSSOMString minBlockSize;
|
|
60
|
+
attribute CSSOMString maxBlockSize;
|
|
61
|
+
attribute CSSOMString inlineSize;
|
|
62
|
+
attribute CSSOMString minInlineSize;
|
|
63
|
+
attribute CSSOMString maxInlineSize;
|
|
64
|
+
attribute CSSOMString min-width;
|
|
65
|
+
attribute CSSOMString max-width;
|
|
66
|
+
attribute CSSOMString min-height;
|
|
67
|
+
attribute CSSOMString max-height;
|
|
68
|
+
attribute CSSOMString block-size;
|
|
69
|
+
attribute CSSOMString min-block-size;
|
|
70
|
+
attribute CSSOMString max-block-size;
|
|
71
|
+
attribute CSSOMString inline-size;
|
|
72
|
+
attribute CSSOMString min-inline-size;
|
|
73
|
+
attribute CSSOMString max-inline-size;
|
|
74
|
+
attribute CSSOMString placeSelf;
|
|
75
|
+
attribute CSSOMString alignSelf;
|
|
76
|
+
attribute CSSOMString justifySelf;
|
|
77
|
+
attribute CSSOMString place-self;
|
|
78
|
+
attribute CSSOMString align-self;
|
|
79
|
+
attribute CSSOMString justify-self;
|
|
80
|
+
attribute CSSOMString positionAnchor;
|
|
81
|
+
attribute CSSOMString position-anchor;
|
|
82
|
+
attribute CSSOMString insetArea;
|
|
83
|
+
attribute CSSOMString inset-area;
|
|
10
84
|
};
|
|
@@ -12,7 +12,7 @@ enum ViewTransitionNavigation { "auto", "none" };
|
|
|
12
12
|
[Exposed=Window]
|
|
13
13
|
interface CSSViewTransitionRule : CSSRule {
|
|
14
14
|
readonly attribute ViewTransitionNavigation navigation;
|
|
15
|
-
readonly attribute FrozenArray<CSSOMString> types;
|
|
15
|
+
[SameObject] readonly attribute FrozenArray<CSSOMString> types;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
[Exposed=Window]
|
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
|
};
|
|
@@ -20,7 +20,7 @@ interface DocumentPictureInPicture : EventTarget {
|
|
|
20
20
|
dictionary DocumentPictureInPictureOptions {
|
|
21
21
|
[EnforceRange] unsigned long long width = 0;
|
|
22
22
|
[EnforceRange] unsigned long long height = 0;
|
|
23
|
-
boolean
|
|
23
|
+
boolean disallowReturnToOpener = false;
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
[Exposed=Window, SecureContext]
|
package/dom.idl
CHANGED
|
@@ -340,6 +340,7 @@ interface ShadowRoot : DocumentFragment {
|
|
|
340
340
|
readonly attribute boolean delegatesFocus;
|
|
341
341
|
readonly attribute SlotAssignmentMode slotAssignment;
|
|
342
342
|
readonly attribute boolean clonable;
|
|
343
|
+
readonly attribute boolean serializable;
|
|
343
344
|
readonly attribute Element host;
|
|
344
345
|
attribute EventHandler onslotchange;
|
|
345
346
|
};
|
|
@@ -398,6 +399,7 @@ dictionary ShadowRootInit {
|
|
|
398
399
|
boolean delegatesFocus = false;
|
|
399
400
|
SlotAssignmentMode slotAssignment = "named";
|
|
400
401
|
boolean clonable = false;
|
|
402
|
+
boolean serializable = false;
|
|
401
403
|
};
|
|
402
404
|
|
|
403
405
|
[Exposed=Window,
|
package/html.idl
CHANGED
|
@@ -1245,6 +1245,7 @@ interface HTMLTemplateElement : HTMLElement {
|
|
|
1245
1245
|
[CEReactions] attribute DOMString shadowRootMode;
|
|
1246
1246
|
[CEReactions] attribute boolean shadowRootDelegatesFocus;
|
|
1247
1247
|
[CEReactions] attribute boolean shadowRootClonable;
|
|
1248
|
+
[CEReactions] attribute boolean shadowRootSerializable;
|
|
1248
1249
|
};
|
|
1249
1250
|
|
|
1250
1251
|
[Exposed=Window]
|
|
@@ -2292,6 +2293,25 @@ interface mixin WindowOrWorkerGlobalScope {
|
|
|
2292
2293
|
Window includes WindowOrWorkerGlobalScope;
|
|
2293
2294
|
WorkerGlobalScope includes WindowOrWorkerGlobalScope;
|
|
2294
2295
|
|
|
2296
|
+
partial interface Element {
|
|
2297
|
+
[CEReactions] undefined setHTMLUnsafe(HTMLString html);
|
|
2298
|
+
DOMString getHTML(optional GetHTMLOptions options = {});
|
|
2299
|
+
|
|
2300
|
+
[CEReactions] attribute [LegacyNullToEmptyString] HTMLString innerHTML;
|
|
2301
|
+
};
|
|
2302
|
+
|
|
2303
|
+
partial interface ShadowRoot {
|
|
2304
|
+
[CEReactions] undefined setHTMLUnsafe(HTMLString html);
|
|
2305
|
+
DOMString getHTML(optional GetHTMLOptions options = {});
|
|
2306
|
+
|
|
2307
|
+
[CEReactions] attribute [LegacyNullToEmptyString] HTMLString innerHTML;
|
|
2308
|
+
};
|
|
2309
|
+
|
|
2310
|
+
dictionary GetHTMLOptions {
|
|
2311
|
+
boolean serializableShadowRoots = false;
|
|
2312
|
+
sequence<ShadowRoot> shadowRoots = [];
|
|
2313
|
+
};
|
|
2314
|
+
|
|
2295
2315
|
[Exposed=Window]
|
|
2296
2316
|
interface DOMParser {
|
|
2297
2317
|
constructor();
|
|
@@ -2307,14 +2327,6 @@ enum DOMParserSupportedType {
|
|
|
2307
2327
|
"image/svg+xml"
|
|
2308
2328
|
};
|
|
2309
2329
|
|
|
2310
|
-
partial interface Element {
|
|
2311
|
-
[CEReactions] undefined setHTMLUnsafe(HTMLString html);
|
|
2312
|
-
};
|
|
2313
|
-
|
|
2314
|
-
partial interface ShadowRoot {
|
|
2315
|
-
[CEReactions] undefined setHTMLUnsafe(HTMLString html);
|
|
2316
|
-
};
|
|
2317
|
-
|
|
2318
2330
|
[Exposed=Window]
|
|
2319
2331
|
interface Navigator {
|
|
2320
2332
|
// objects implementing this interface also implement the interfaces given below
|
package/mediasession.idl
CHANGED
|
@@ -56,6 +56,7 @@ interface MediaMetadata {
|
|
|
56
56
|
attribute DOMString artist;
|
|
57
57
|
attribute DOMString album;
|
|
58
58
|
attribute FrozenArray<MediaImage> artwork;
|
|
59
|
+
[SameObject] readonly attribute FrozenArray<ChapterInformation> chapterInfo;
|
|
59
60
|
};
|
|
60
61
|
|
|
61
62
|
dictionary MediaMetadataInit {
|
|
@@ -63,6 +64,20 @@ dictionary MediaMetadataInit {
|
|
|
63
64
|
DOMString artist = "";
|
|
64
65
|
DOMString album = "";
|
|
65
66
|
sequence<MediaImage> artwork = [];
|
|
67
|
+
sequence<ChapterInformationInit> chapterInfo = [];
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
[Exposed=Window]
|
|
71
|
+
interface ChapterInformation {
|
|
72
|
+
readonly attribute DOMString title;
|
|
73
|
+
readonly attribute double startTime;
|
|
74
|
+
[SameObject] readonly attribute FrozenArray<MediaImage> artwork;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
dictionary ChapterInformationInit {
|
|
78
|
+
DOMString title = "";
|
|
79
|
+
double startTime = 0;
|
|
80
|
+
sequence<MediaImage> artwork = [];
|
|
66
81
|
};
|
|
67
82
|
|
|
68
83
|
dictionary MediaImage {
|
package/package.json
CHANGED
package/sanitizer-api.idl
CHANGED
|
@@ -3,19 +3,15 @@
|
|
|
3
3
|
// (https://github.com/w3c/webref)
|
|
4
4
|
// Source: HTML Sanitizer API (https://wicg.github.io/sanitizer-api/)
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
[CEReactions] undefined setHTML(DOMString html, optional SanitizerConfig config = {});
|
|
6
|
+
dictionary SetHTMLOptions {
|
|
7
|
+
(Sanitizer or SanitizerConfig) sanitizer = {};
|
|
9
8
|
};
|
|
10
9
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
partial interface Document {
|
|
17
|
-
static Document parseHTMLUnsafe__TO_BE_MERGED(DOMString html, optional SanitizerConfig config = {});
|
|
18
|
-
static Document parseHTML(DOMString html, optional SanitizerConfig config = {});
|
|
10
|
+
[Exposed=(Window,Worker)]
|
|
11
|
+
interface Sanitizer {
|
|
12
|
+
constructor(optional SanitizerConfig config = {});
|
|
13
|
+
SanitizerConfig get();
|
|
14
|
+
SanitizerConfig getUnsafe();
|
|
19
15
|
};
|
|
20
16
|
|
|
21
17
|
dictionary SanitizerElementNamespace {
|
package/service-workers.idl
CHANGED
package/shape-detection-api.idl
CHANGED
|
@@ -17,11 +17,11 @@ dictionary FaceDetectorOptions {
|
|
|
17
17
|
|
|
18
18
|
dictionary DetectedFace {
|
|
19
19
|
required DOMRectReadOnly boundingBox;
|
|
20
|
-
required
|
|
20
|
+
required sequence<Landmark>? landmarks;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
dictionary Landmark {
|
|
24
|
-
required
|
|
24
|
+
required sequence<Point2D> locations;
|
|
25
25
|
LandmarkType type;
|
|
26
26
|
};
|
|
27
27
|
|
|
@@ -48,7 +48,7 @@ dictionary DetectedBarcode {
|
|
|
48
48
|
required DOMRectReadOnly boundingBox;
|
|
49
49
|
required DOMString rawValue;
|
|
50
50
|
required BarcodeFormat format;
|
|
51
|
-
required
|
|
51
|
+
required sequence<Point2D> cornerPoints;
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
enum BarcodeFormat {
|
package/text-detection-api.idl
CHANGED
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
|
|
package/turtledove.idl
CHANGED
|
@@ -82,6 +82,7 @@ dictionary AuctionAdConfig {
|
|
|
82
82
|
Promise<record<USVString, any>> perBuyerSignals;
|
|
83
83
|
Promise<record<USVString, unsigned long long>> perBuyerTimeouts;
|
|
84
84
|
Promise<record<USVString, unsigned long long>> perBuyerCumulativeTimeouts;
|
|
85
|
+
unsigned long long reportingTimeout;
|
|
85
86
|
USVString sellerCurrency;
|
|
86
87
|
Promise<record<USVString, USVString>> perBuyerCurrencies;
|
|
87
88
|
record<USVString, unsigned short> perBuyerGroupLimits;
|
package/wasm-js-api.idl
CHANGED
|
@@ -62,6 +62,8 @@ dictionary MemoryDescriptor {
|
|
|
62
62
|
interface Memory {
|
|
63
63
|
constructor(MemoryDescriptor descriptor);
|
|
64
64
|
unsigned long grow([EnforceRange] unsigned long delta);
|
|
65
|
+
ArrayBuffer toFixedLengthBuffer();
|
|
66
|
+
ArrayBuffer toResizableBuffer();
|
|
65
67
|
readonly attribute ArrayBuffer buffer;
|
|
66
68
|
};
|
|
67
69
|
|
package/webcodecs.idl
CHANGED
package/webidl.idl
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
typedef (Int8Array or Int16Array or Int32Array or
|
|
7
7
|
Uint8Array or Uint16Array or Uint32Array or Uint8ClampedArray or
|
|
8
8
|
BigInt64Array or BigUint64Array or
|
|
9
|
-
Float32Array or Float64Array or DataView) ArrayBufferView;
|
|
9
|
+
Float16Array or Float32Array or Float64Array or DataView) ArrayBufferView;
|
|
10
10
|
|
|
11
11
|
typedef (ArrayBufferView or ArrayBuffer) BufferSource;
|
|
12
12
|
typedef (ArrayBuffer or SharedArrayBuffer or [AllowShared] ArrayBufferView) AllowSharedBufferSource;
|
package/webnn.idl
CHANGED
|
@@ -245,6 +245,11 @@ partial interface MLGraphBuilder {
|
|
|
245
245
|
optional MLGatherOptions options = {});
|
|
246
246
|
};
|
|
247
247
|
|
|
248
|
+
partial interface MLGraphBuilder {
|
|
249
|
+
MLOperand gelu(MLOperand input);
|
|
250
|
+
MLActivation gelu();
|
|
251
|
+
};
|
|
252
|
+
|
|
248
253
|
dictionary MLGemmOptions {
|
|
249
254
|
MLOperand c;
|
|
250
255
|
float alpha = 1.0;
|
package/webrtc.idl
CHANGED
|
@@ -368,6 +368,7 @@ interface RTCRtpReceiver {
|
|
|
368
368
|
sequence<RTCRtpContributingSource> getContributingSources();
|
|
369
369
|
sequence<RTCRtpSynchronizationSource> getSynchronizationSources();
|
|
370
370
|
Promise<RTCStatsReport> getStats();
|
|
371
|
+
attribute DOMHighResTimeStamp? jitterBufferTarget;
|
|
371
372
|
};
|
|
372
373
|
|
|
373
374
|
dictionary RTCRtpContributingSource {
|
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]
|
|
@@ -263,8 +264,8 @@ interface XRInputSourcesChangeEvent : Event {
|
|
|
263
264
|
|
|
264
265
|
dictionary XRInputSourcesChangeEventInit : EventInit {
|
|
265
266
|
required XRSession session;
|
|
266
|
-
required
|
|
267
|
-
required
|
|
267
|
+
required sequence<XRInputSource> added;
|
|
268
|
+
required sequence<XRInputSource> removed;
|
|
268
269
|
|
|
269
270
|
};
|
|
270
271
|
|