@webref/idl 3.78.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/SVG.idl CHANGED
@@ -324,12 +324,10 @@ interface mixin GetSVGDocument {
324
324
 
325
325
  [Exposed=Window]
326
326
  interface SVGStyleElement : SVGElement {
327
- attribute DOMString media;
328
- attribute DOMString title;
327
+ [Reflect] attribute DOMString type;
328
+ [Reflect] attribute DOMString media;
329
+ [Reflect] attribute DOMString title;
329
330
  attribute boolean disabled;
330
-
331
- // obsolete members
332
- attribute DOMString type;
333
331
  };
334
332
 
335
333
  SVGStyleElement includes LinkStyle;
@@ -644,7 +642,7 @@ SVGPatternElement includes SVGURIReference;
644
642
 
645
643
  [Exposed=Window]
646
644
  interface SVGScriptElement : SVGElement {
647
- attribute DOMString type;
645
+ [Reflect] attribute DOMString type;
648
646
  attribute DOMString? crossOrigin;
649
647
  };
650
648
 
@@ -652,13 +650,13 @@ SVGScriptElement includes SVGURIReference;
652
650
 
653
651
  [Exposed=Window]
654
652
  interface SVGAElement : SVGGraphicsElement {
655
- [SameObject] readonly attribute SVGAnimatedString target;
656
- attribute DOMString download;
657
- attribute USVString ping;
658
- attribute DOMString rel;
659
- [SameObject, PutForwards=value] readonly attribute DOMTokenList relList;
660
- attribute DOMString hreflang;
661
- attribute DOMString type;
653
+ [Reflect, SameObject] readonly attribute SVGAnimatedString target;
654
+ [Reflect] attribute DOMString download;
655
+ [Reflect] attribute USVString ping;
656
+ [Reflect] attribute DOMString rel;
657
+ [Reflect="rel", SameObject, PutForwards=value] readonly attribute DOMTokenList relList;
658
+ [Reflect] attribute DOMString hreflang;
659
+ [Reflect] attribute DOMString type;
662
660
 
663
661
  attribute DOMString referrerPolicy;
664
662
  };
package/attribution.idl CHANGED
@@ -7,7 +7,7 @@ partial interface Navigator {
7
7
  [SecureContext, SameObject] readonly attribute Attribution attribution;
8
8
  };
9
9
 
10
- enum AttributionAggregationProtocol { "dap-15-histogram" };
10
+ enum AttributionAggregationProtocol { "dap-18-histogram" };
11
11
 
12
12
  dictionary AttributionAggregationService {
13
13
  required AttributionAggregationProtocol protocol;
@@ -0,0 +1,13 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: Connection Allowlists (https://wicg.github.io/connection-allowlists/)
5
+
6
+ enum ConnectionAllowlistDisposition { "enforce", "report" };
7
+
8
+ dictionary ConnectionAllowlistViolationReport : ReportBody {
9
+ USVString url;
10
+ USVString connection;
11
+ sequence<DOMString> allowlist;
12
+ ConnectionAllowlistDisposition disposition;
13
+ };
@@ -21,7 +21,7 @@ partial dictionary CredentialCreationOptions {
21
21
  };
22
22
 
23
23
  dictionary DigitalCredentialCreationOptions {
24
- sequence<DigitalCredentialCreateRequest> requests;
24
+ required sequence<DigitalCredentialCreateRequest> requests;
25
25
  };
26
26
 
27
27
  dictionary DigitalCredentialCreateRequest {
@@ -29,10 +29,23 @@ dictionary DigitalCredentialCreateRequest {
29
29
  required object data;
30
30
  };
31
31
 
32
+ typedef (DigitalCredentialPresentationProtocol or DigitalCredentialIssuanceProtocol) DigitalCredentialProtocol;
33
+
32
34
  [Exposed=Window, SecureContext]
33
35
  interface DigitalCredential : Credential {
34
36
  [Default] object toJSON();
35
- readonly attribute DOMString protocol;
37
+ readonly attribute DigitalCredentialProtocol protocol;
36
38
  [SameObject] readonly attribute object data;
37
39
  static boolean userAgentAllowsProtocol(DOMString protocol);
38
40
  };
41
+
42
+ enum DigitalCredentialPresentationProtocol {
43
+ "openid4vp-v1-unsigned",
44
+ "openid4vp-v1-signed",
45
+ "openid4vp-v1-multisigned",
46
+ "org-iso-mdoc"
47
+ };
48
+
49
+ enum DigitalCredentialIssuanceProtocol {
50
+ "openid4vci-v1",
51
+ };
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;
@@ -349,13 +350,10 @@ interface HTMLDivElement : HTMLElement {
349
350
  interface HTMLAnchorElement : HTMLElement {
350
351
  [HTMLConstructor] constructor();
351
352
 
352
- [CEReactions, Reflect] attribute DOMString target;
353
353
  [CEReactions, Reflect] attribute DOMString download;
354
354
  [CEReactions, Reflect] attribute USVString ping;
355
355
  [CEReactions, Reflect] attribute DOMString rel;
356
356
  [SameObject, PutForwards=value, Reflect="rel"] readonly attribute DOMTokenList relList;
357
- [CEReactions, Reflect] attribute DOMString hreflang;
358
- [CEReactions, Reflect] attribute DOMString type;
359
357
 
360
358
  [CEReactions] attribute DOMString text;
361
359
 
@@ -403,10 +401,14 @@ interface mixin HyperlinkElementUtils {
403
401
  [CEReactions] attribute USVString pathname;
404
402
  [CEReactions] attribute USVString search;
405
403
  [CEReactions] attribute USVString hash;
404
+
405
+ [CEReactions, Reflect] attribute DOMString hreflang;
406
+ [CEReactions, Reflect] attribute DOMString type;
406
407
  };
407
408
 
408
409
  interface mixin HTMLHyperlinkElementUtils {
409
410
  [CEReactions, ReflectSetter] stringifier attribute USVString href;
411
+ [CEReactions, Reflect] attribute DOMString target;
410
412
  };
411
413
 
412
414
  [Exposed=Window]
@@ -763,7 +765,6 @@ interface HTMLAreaElement : HTMLElement {
763
765
  [CEReactions, Reflect] attribute DOMString alt;
764
766
  [CEReactions, Reflect] attribute DOMString coords;
765
767
  [CEReactions, Reflect] attribute DOMString shape;
766
- [CEReactions, Reflect] attribute DOMString target;
767
768
  [CEReactions, Reflect] attribute DOMString download;
768
769
  [CEReactions, Reflect] attribute USVString ping;
769
770
  [CEReactions, Reflect] attribute DOMString rel;
@@ -2361,7 +2362,8 @@ Window includes WindowOrWorkerGlobalScope;
2361
2362
  WorkerGlobalScope includes WindowOrWorkerGlobalScope;
2362
2363
 
2363
2364
  partial interface Element {
2364
- [CEReactions] undefined setHTMLUnsafe((TrustedHTML or DOMString) html);
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 setHTMLUnsafe((TrustedHTML or DOMString) html);
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webref/idl",
3
3
  "description": "Web IDL definitions of the web platform",
4
- "version": "3.78.0",
4
+ "version": "3.80.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
package/pointerevents.idl CHANGED
@@ -87,6 +87,7 @@ interface WheelEvent : MouseEvent {
87
87
  readonly attribute double deltaY;
88
88
  readonly attribute double deltaZ;
89
89
  readonly attribute unsigned long deltaMode;
90
+ readonly attribute boolean momentum;
90
91
  };
91
92
 
92
93
  dictionary WheelEventInit : MouseEventInit {
package/speech-api.idl CHANGED
@@ -12,6 +12,7 @@ interface SpeechRecognition : EventTarget {
12
12
  attribute DOMString lang;
13
13
  attribute boolean continuous;
14
14
  attribute boolean interimResults;
15
+ attribute boolean unspokenPunctuation;
15
16
  attribute unsigned long maxAlternatives;
16
17
  attribute boolean processLocally;
17
18
  attribute ObservableArray<SpeechRecognitionPhrase> phrases;
@@ -59,7 +59,7 @@ dictionary EncapsulatedBits {
59
59
  };
60
60
 
61
61
  partial dictionary JsonWebKey {
62
- // The following fields are defined in draft-ietf-cose-dilithium-08
62
+ // The following fields are defined in RFC 9964
63
63
  DOMString pub;
64
64
  DOMString priv;
65
65
  };
package/webmcp.idl CHANGED
@@ -3,13 +3,15 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: WebMCP (https://webmachinelearning.github.io/webmcp/)
5
5
 
6
- partial interface Navigator {
6
+ partial interface Document {
7
7
  [SecureContext, SameObject] readonly attribute ModelContext modelContext;
8
8
  };
9
9
 
10
10
  [Exposed=Window, SecureContext]
11
- interface ModelContext {
11
+ interface ModelContext : EventTarget {
12
12
  undefined registerTool(ModelContextTool tool, optional ModelContextRegisterToolOptions options = {});
13
+
14
+ attribute EventHandler ontoolchange;
13
15
  };
14
16
 
15
17
  dictionary ModelContextTool {
@@ -32,6 +34,7 @@ callback ToolExecuteCallback = Promise<any> (object input, ModelContextClient cl
32
34
 
33
35
  dictionary ModelContextRegisterToolOptions {
34
36
  AbortSignal signal;
37
+ sequence<USVString> exposedTo;
35
38
  };
36
39
 
37
40
  [Exposed=Window, SecureContext]
@@ -3,8 +3,8 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: WebRTC Encoded Transform (https://w3c.github.io/webrtc-encoded-transform/)
5
5
 
6
- typedef (RTCSFrameSenderTransform or RTCRtpScriptTransform) RTCRtpSenderTransform;
7
- typedef (RTCSFrameReceiverTransform or RTCRtpScriptTransform) RTCRtpReceiverTransform;
6
+ typedef (RTCRtpSFrameEncrypter or RTCRtpScriptTransform) RTCRtpSenderTransform;
7
+ typedef (RTCRtpSFrameDecrypter or RTCRtpScriptTransform) RTCRtpReceiverTransform;
8
8
 
9
9
  // New methods for RTCRtpSender and RTCRtpReceiver
10
10
  partial interface RTCRtpSender {
@@ -36,7 +36,7 @@ enum SFrameType {
36
36
  "per-packet"
37
37
  };
38
38
 
39
- dictionary RTCSFrameSenderTransformOptions : SFrameTransformOptions {
39
+ dictionary RTCRtpSFrameEncrypterOptions : SFrameTransformOptions {
40
40
  SFrameType type = "per-frame";
41
41
  };
42
42
 
@@ -54,19 +54,19 @@ interface mixin SFrameDecrypterManager {
54
54
  };
55
55
 
56
56
  [Exposed=Window]
57
- interface RTCSFrameSenderTransform {
58
- constructor(RTCSFrameSenderTransformOptions options);
57
+ interface RTCRtpSFrameEncrypter {
58
+ constructor(RTCRtpSFrameEncrypterOptions options);
59
59
  };
60
- RTCSFrameSenderTransform includes SFrameEncrypterManager;
60
+ RTCRtpSFrameEncrypter includes SFrameEncrypterManager;
61
61
 
62
62
  [Exposed=Window]
63
- interface RTCSFrameReceiverTransform : EventTarget {
63
+ interface RTCRtpSFrameDecrypter : EventTarget {
64
64
  constructor(SFrameTransformOptions options);
65
65
  };
66
- RTCSFrameReceiverTransform includes SFrameDecrypterManager;
66
+ RTCRtpSFrameDecrypter includes SFrameDecrypterManager;
67
67
 
68
68
  [Exposed=(Window,DedicatedWorker)]
69
- interface SFrameEncrypterStream : EventTarget {
69
+ interface SFrameEncrypterStream {
70
70
  constructor(SFrameTransformOptions options);
71
71
  };
72
72
  SFrameEncrypterStream includes GenericTransformStream;
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
- };