@webref/idl 3.45.2 → 3.45.3
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/compute-pressure.idl +1 -1
- package/css-animations.idl +1 -1
- package/css-fonts.idl +34 -1
- package/css-scroll-snap-2.idl +7 -24
- package/css-view-transitions-2.idl +24 -12
- package/cssom-view.idl +1 -0
- package/cssom.idl +22 -2
- package/html.idl +10 -10
- package/media-source.idl +48 -42
- package/package.json +1 -1
- package/sanitizer-api.idl +37 -24
- package/url.idl +1 -0
- package/webcodecs-opus-codec-registration.idl +14 -0
- package/webcodecs.idl +2 -2
package/compute-pressure.idl
CHANGED
package/css-animations.idl
CHANGED
|
@@ -24,7 +24,7 @@ partial interface CSSRule {
|
|
|
24
24
|
[Exposed=Window]
|
|
25
25
|
interface CSSKeyframeRule : CSSRule {
|
|
26
26
|
attribute CSSOMString keyText;
|
|
27
|
-
[SameObject, PutForwards=cssText] readonly attribute
|
|
27
|
+
[SameObject, PutForwards=cssText] readonly attribute CSSStyleProperties style;
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
[Exposed=Window]
|
package/css-fonts.idl
CHANGED
|
@@ -3,9 +3,42 @@
|
|
|
3
3
|
// (https://github.com/w3c/webref)
|
|
4
4
|
// Source: CSS Fonts Module Level 4 (https://drafts.csswg.org/css-fonts-4/)
|
|
5
5
|
|
|
6
|
+
[Exposed=Window]
|
|
7
|
+
interface CSSFontFaceDescriptors : CSSStyleDeclaration {
|
|
8
|
+
attribute [LegacyNullToEmptyString] CSSOMString src;
|
|
9
|
+
attribute [LegacyNullToEmptyString] CSSOMString fontFamily;
|
|
10
|
+
attribute [LegacyNullToEmptyString] CSSOMString font-family;
|
|
11
|
+
attribute [LegacyNullToEmptyString] CSSOMString fontStyle;
|
|
12
|
+
attribute [LegacyNullToEmptyString] CSSOMString font-style;
|
|
13
|
+
attribute [LegacyNullToEmptyString] CSSOMString fontWeight;
|
|
14
|
+
attribute [LegacyNullToEmptyString] CSSOMString font-weight;
|
|
15
|
+
attribute [LegacyNullToEmptyString] CSSOMString fontStretch;
|
|
16
|
+
attribute [LegacyNullToEmptyString] CSSOMString font-stretch;
|
|
17
|
+
attribute [LegacyNullToEmptyString] CSSOMString fontWidth;
|
|
18
|
+
attribute [LegacyNullToEmptyString] CSSOMString font-width;
|
|
19
|
+
attribute [LegacyNullToEmptyString] CSSOMString unicodeRange;
|
|
20
|
+
attribute [LegacyNullToEmptyString] CSSOMString unicode-range;
|
|
21
|
+
attribute [LegacyNullToEmptyString] CSSOMString fontFeatureSettings;
|
|
22
|
+
attribute [LegacyNullToEmptyString] CSSOMString font-feature-settings;
|
|
23
|
+
attribute [LegacyNullToEmptyString] CSSOMString fontVariationSettings;
|
|
24
|
+
attribute [LegacyNullToEmptyString] CSSOMString font-variation-settings;
|
|
25
|
+
attribute [LegacyNullToEmptyString] CSSOMString fontNamedInstance;
|
|
26
|
+
attribute [LegacyNullToEmptyString] CSSOMString font-named-instance;
|
|
27
|
+
attribute [LegacyNullToEmptyString] CSSOMString fontDisplay;
|
|
28
|
+
attribute [LegacyNullToEmptyString] CSSOMString font-display;
|
|
29
|
+
attribute [LegacyNullToEmptyString] CSSOMString fontLanguageOverride;
|
|
30
|
+
attribute [LegacyNullToEmptyString] CSSOMString font-language-override;
|
|
31
|
+
attribute [LegacyNullToEmptyString] CSSOMString ascentOverride;
|
|
32
|
+
attribute [LegacyNullToEmptyString] CSSOMString ascent-override;
|
|
33
|
+
attribute [LegacyNullToEmptyString] CSSOMString descentOverride;
|
|
34
|
+
attribute [LegacyNullToEmptyString] CSSOMString descent-override;
|
|
35
|
+
attribute [LegacyNullToEmptyString] CSSOMString lineGapOverride;
|
|
36
|
+
attribute [LegacyNullToEmptyString] CSSOMString line-gap-override;
|
|
37
|
+
};
|
|
38
|
+
|
|
6
39
|
[Exposed=Window]
|
|
7
40
|
interface CSSFontFaceRule : CSSRule {
|
|
8
|
-
readonly attribute
|
|
41
|
+
readonly attribute CSSFontFaceDescriptors style;
|
|
9
42
|
};
|
|
10
43
|
|
|
11
44
|
partial interface CSSRule { const unsigned short FONT_FEATURE_VALUES_RULE = 14;
|
package/css-scroll-snap-2.idl
CHANGED
|
@@ -3,31 +3,14 @@
|
|
|
3
3
|
// (https://github.com/w3c/webref)
|
|
4
4
|
// Source: CSS Scroll Snap Module Level 2 (https://drafts.csswg.org/css-scroll-snap-2/)
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
readonly attribute EventTarget? target;
|
|
10
|
-
readonly attribute SnapTargetList snappedTargets;
|
|
11
|
-
readonly attribute SnapTargetList snapTargets;
|
|
12
|
-
readonly attribute boolean invokedProgrammatically;
|
|
13
|
-
readonly attribute boolean smoothlyScrolled;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
[Exposed=Window]
|
|
17
|
-
interface SnapTargetList {
|
|
18
|
-
readonly attribute SnapTargetArray x;
|
|
19
|
-
readonly attribute SnapTargetArray y;
|
|
6
|
+
dictionary SnapEventInit : EventInit {
|
|
7
|
+
Node? snapTargetBlock;
|
|
8
|
+
Node? snapTargetInline;
|
|
20
9
|
};
|
|
21
10
|
|
|
22
11
|
[Exposed=Window]
|
|
23
|
-
interface
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
dictionary SnapEventInit : EventModifierInit {
|
|
29
|
-
sequence<EventTarget> snappedTargetsX = [];
|
|
30
|
-
sequence<EventTarget> snappedTargetsY = [];
|
|
31
|
-
sequence<EventTarget> snapTargetsListX = [];
|
|
32
|
-
sequence<EventTarget> snapTargetsListY = [];
|
|
12
|
+
interface SnapEvent : Event {
|
|
13
|
+
constructor(DOMString type, optional SnapEventInit eventInitDict = {});
|
|
14
|
+
readonly attribute Node? snapTargetBlock;
|
|
15
|
+
readonly attribute Node? snapTargetInline;
|
|
33
16
|
};
|
|
@@ -3,27 +3,39 @@
|
|
|
3
3
|
// (https://github.com/w3c/webref)
|
|
4
4
|
// Source: CSS View Transitions Module Level 2 (https://drafts.csswg.org/css-view-transitions-2/)
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
sequence<DOMString>? type = null;
|
|
6
|
+
partial interface CSSRule {
|
|
7
|
+
const unsigned short VIEW_TRANSITION_RULE = 15;
|
|
9
8
|
};
|
|
10
9
|
|
|
11
|
-
|
|
10
|
+
enum ViewTransitionNavigation { "auto", "none" };
|
|
12
11
|
|
|
13
|
-
|
|
12
|
+
[Exposed=Window]
|
|
13
|
+
interface CSSViewTransitionTypeSet {
|
|
14
|
+
readonly setlike<CSSOMString>;
|
|
14
15
|
};
|
|
15
16
|
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
[Exposed=Window]
|
|
18
|
+
interface CSSViewTransitionRule : CSSRule {
|
|
19
|
+
readonly attribute ViewTransitionNavigation navigation;
|
|
20
|
+
readonly attribute CSSViewTransitionTypeSet types;
|
|
18
21
|
};
|
|
19
22
|
|
|
20
|
-
enum ViewTransitionNavigation { "auto", "none" };
|
|
21
23
|
[Exposed=Window]
|
|
22
|
-
interface
|
|
23
|
-
|
|
24
|
-
attribute DOMTokenList typeList;
|
|
24
|
+
interface ViewTransitionTypeSet {
|
|
25
|
+
setlike<DOMString>;
|
|
25
26
|
};
|
|
26
27
|
|
|
28
|
+
[Exposed=Window]
|
|
27
29
|
partial interface ViewTransition {
|
|
28
|
-
|
|
30
|
+
attribute ViewTransitionTypeSet types;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
dictionary StartViewTransitionOptions {
|
|
34
|
+
UpdateCallback? update = null;
|
|
35
|
+
sequence<DOMString>? types = null;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
partial interface Document {
|
|
39
|
+
|
|
40
|
+
ViewTransition startViewTransition(optional (UpdateCallback or StartViewTransitionOptions) callbackOptions = {});
|
|
29
41
|
};
|
package/cssom-view.idl
CHANGED
package/cssom.idl
CHANGED
|
@@ -91,7 +91,7 @@ interface CSSRule {
|
|
|
91
91
|
[Exposed=Window]
|
|
92
92
|
interface CSSStyleRule : CSSGroupingRule {
|
|
93
93
|
attribute CSSOMString selectorText;
|
|
94
|
-
[SameObject, PutForwards=cssText] readonly attribute
|
|
94
|
+
[SameObject, PutForwards=cssText] readonly attribute CSSStyleProperties style;
|
|
95
95
|
};
|
|
96
96
|
|
|
97
97
|
[Exposed=Window]
|
|
@@ -110,10 +110,26 @@ interface CSSGroupingRule : CSSRule {
|
|
|
110
110
|
undefined deleteRule(unsigned long index);
|
|
111
111
|
};
|
|
112
112
|
|
|
113
|
+
[Exposed=Window]
|
|
114
|
+
interface CSSPageDescriptors : CSSStyleDeclaration {
|
|
115
|
+
attribute [LegacyNullToEmptyString] CSSOMString margin;
|
|
116
|
+
attribute [LegacyNullToEmptyString] CSSOMString marginTop;
|
|
117
|
+
attribute [LegacyNullToEmptyString] CSSOMString marginRight;
|
|
118
|
+
attribute [LegacyNullToEmptyString] CSSOMString marginBottom;
|
|
119
|
+
attribute [LegacyNullToEmptyString] CSSOMString marginLeft;
|
|
120
|
+
attribute [LegacyNullToEmptyString] CSSOMString margin-top;
|
|
121
|
+
attribute [LegacyNullToEmptyString] CSSOMString margin-right;
|
|
122
|
+
attribute [LegacyNullToEmptyString] CSSOMString margin-bottom;
|
|
123
|
+
attribute [LegacyNullToEmptyString] CSSOMString margin-left;
|
|
124
|
+
attribute [LegacyNullToEmptyString] CSSOMString size;
|
|
125
|
+
attribute [LegacyNullToEmptyString] CSSOMString marks;
|
|
126
|
+
attribute [LegacyNullToEmptyString] CSSOMString bleed;
|
|
127
|
+
};
|
|
128
|
+
|
|
113
129
|
[Exposed=Window]
|
|
114
130
|
interface CSSPageRule : CSSGroupingRule {
|
|
115
131
|
attribute CSSOMString selectorText;
|
|
116
|
-
[SameObject, PutForwards=cssText] readonly attribute
|
|
132
|
+
[SameObject, PutForwards=cssText] readonly attribute CSSPageDescriptors style;
|
|
117
133
|
};
|
|
118
134
|
|
|
119
135
|
[Exposed=Window]
|
|
@@ -138,6 +154,10 @@ interface CSSStyleDeclaration {
|
|
|
138
154
|
[CEReactions] undefined setProperty(CSSOMString property, [LegacyNullToEmptyString] CSSOMString value, optional [LegacyNullToEmptyString] CSSOMString priority = "");
|
|
139
155
|
[CEReactions] CSSOMString removeProperty(CSSOMString property);
|
|
140
156
|
readonly attribute CSSRule? parentRule;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
[Exposed=Window]
|
|
160
|
+
interface CSSStyleProperties : CSSStyleDeclaration {
|
|
141
161
|
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString cssFloat;
|
|
142
162
|
};
|
|
143
163
|
|
package/html.idl
CHANGED
|
@@ -48,7 +48,7 @@ typedef (HTMLScriptElement or SVGScriptElement) HTMLOrSVGScriptElement;
|
|
|
48
48
|
|
|
49
49
|
[LegacyOverrideBuiltIns]
|
|
50
50
|
partial interface Document {
|
|
51
|
-
static Document parseHTMLUnsafe(
|
|
51
|
+
static Document parseHTMLUnsafe(HTMLString html);
|
|
52
52
|
|
|
53
53
|
// resource metadata management
|
|
54
54
|
[PutForwards=href, LegacyUnforgeable] readonly attribute Location? location;
|
|
@@ -77,8 +77,8 @@ partial interface Document {
|
|
|
77
77
|
[CEReactions] Document open(optional DOMString unused1, optional DOMString unused2); // both arguments are ignored
|
|
78
78
|
WindowProxy? open(USVString url, DOMString name, DOMString features);
|
|
79
79
|
[CEReactions] undefined close();
|
|
80
|
-
[CEReactions] undefined write(
|
|
81
|
-
[CEReactions] undefined writeln(
|
|
80
|
+
[CEReactions] undefined write(HTMLString... text);
|
|
81
|
+
[CEReactions] undefined writeln(HTMLString... text);
|
|
82
82
|
|
|
83
83
|
// user interaction
|
|
84
84
|
readonly attribute WindowProxy? defaultView;
|
|
@@ -452,7 +452,7 @@ interface HTMLIFrameElement : HTMLElement {
|
|
|
452
452
|
[HTMLConstructor] constructor();
|
|
453
453
|
|
|
454
454
|
[CEReactions] attribute USVString src;
|
|
455
|
-
[CEReactions] attribute
|
|
455
|
+
[CEReactions] attribute HTMLString srcdoc;
|
|
456
456
|
[CEReactions] attribute DOMString name;
|
|
457
457
|
[SameObject, PutForwards=value] readonly attribute DOMTokenList sandbox;
|
|
458
458
|
[CEReactions] attribute DOMString allow;
|
|
@@ -2296,7 +2296,7 @@ WorkerGlobalScope includes WindowOrWorkerGlobalScope;
|
|
|
2296
2296
|
interface DOMParser {
|
|
2297
2297
|
constructor();
|
|
2298
2298
|
|
|
2299
|
-
[NewObject] Document parseFromString(
|
|
2299
|
+
[NewObject] Document parseFromString(HTMLString string, DOMParserSupportedType type);
|
|
2300
2300
|
};
|
|
2301
2301
|
|
|
2302
2302
|
enum DOMParserSupportedType {
|
|
@@ -2308,11 +2308,11 @@ enum DOMParserSupportedType {
|
|
|
2308
2308
|
};
|
|
2309
2309
|
|
|
2310
2310
|
partial interface Element {
|
|
2311
|
-
[CEReactions] undefined setHTMLUnsafe(
|
|
2311
|
+
[CEReactions] undefined setHTMLUnsafe(HTMLString html);
|
|
2312
2312
|
};
|
|
2313
2313
|
|
|
2314
2314
|
partial interface ShadowRoot {
|
|
2315
|
-
[CEReactions] undefined setHTMLUnsafe(
|
|
2315
|
+
[CEReactions] undefined setHTMLUnsafe(HTMLString html);
|
|
2316
2316
|
};
|
|
2317
2317
|
|
|
2318
2318
|
[Exposed=Window]
|
|
@@ -2527,7 +2527,7 @@ interface WorkerGlobalScope : EventTarget {
|
|
|
2527
2527
|
readonly attribute WorkerGlobalScope self;
|
|
2528
2528
|
readonly attribute WorkerLocation location;
|
|
2529
2529
|
readonly attribute WorkerNavigator navigator;
|
|
2530
|
-
undefined importScripts(
|
|
2530
|
+
undefined importScripts(ScriptURLString... urls);
|
|
2531
2531
|
|
|
2532
2532
|
attribute OnErrorEventHandler onerror;
|
|
2533
2533
|
attribute EventHandler onlanguagechange;
|
|
@@ -2565,7 +2565,7 @@ interface mixin AbstractWorker {
|
|
|
2565
2565
|
|
|
2566
2566
|
[Exposed=(Window,DedicatedWorker,SharedWorker)]
|
|
2567
2567
|
interface Worker : EventTarget {
|
|
2568
|
-
constructor(
|
|
2568
|
+
constructor(ScriptURLString scriptURL, optional WorkerOptions options = {});
|
|
2569
2569
|
|
|
2570
2570
|
undefined terminate();
|
|
2571
2571
|
|
|
@@ -2587,7 +2587,7 @@ Worker includes AbstractWorker;
|
|
|
2587
2587
|
|
|
2588
2588
|
[Exposed=Window]
|
|
2589
2589
|
interface SharedWorker : EventTarget {
|
|
2590
|
-
constructor(
|
|
2590
|
+
constructor(ScriptURLString scriptURL, optional (DOMString or WorkerOptions) options = {});
|
|
2591
2591
|
|
|
2592
2592
|
readonly attribute MessagePort port;
|
|
2593
2593
|
};
|
package/media-source.idl
CHANGED
|
@@ -18,23 +18,25 @@ enum EndOfStreamError {
|
|
|
18
18
|
interface MediaSource : EventTarget {
|
|
19
19
|
constructor();
|
|
20
20
|
|
|
21
|
-
[
|
|
22
|
-
readonly
|
|
23
|
-
|
|
24
|
-
readonly
|
|
25
|
-
readonly
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
undefined
|
|
36
|
-
undefined
|
|
37
|
-
|
|
21
|
+
[SameObject, Exposed=DedicatedWorker]
|
|
22
|
+
readonly attribute MediaSourceHandle handle;
|
|
23
|
+
readonly attribute SourceBufferList sourceBuffers;
|
|
24
|
+
readonly attribute SourceBufferList activeSourceBuffers;
|
|
25
|
+
readonly attribute ReadyState readyState;
|
|
26
|
+
|
|
27
|
+
attribute unrestricted double duration;
|
|
28
|
+
attribute EventHandler onsourceopen;
|
|
29
|
+
attribute EventHandler onsourceended;
|
|
30
|
+
attribute EventHandler onsourceclose;
|
|
31
|
+
|
|
32
|
+
static readonly attribute boolean canConstructInDedicatedWorker;
|
|
33
|
+
|
|
34
|
+
SourceBuffer addSourceBuffer(DOMString type);
|
|
35
|
+
undefined removeSourceBuffer(SourceBuffer sourceBuffer);
|
|
36
|
+
undefined endOfStream(optional EndOfStreamError error);
|
|
37
|
+
undefined setLiveSeekableRange(double start, double end);
|
|
38
|
+
undefined clearLiveSeekableRange();
|
|
39
|
+
static boolean isTypeSupported(DOMString type);
|
|
38
40
|
};
|
|
39
41
|
|
|
40
42
|
[Transferable, Exposed=(Window,DedicatedWorker)]
|
|
@@ -47,32 +49,36 @@ enum AppendMode {
|
|
|
47
49
|
|
|
48
50
|
[Exposed=(Window,DedicatedWorker)]
|
|
49
51
|
interface SourceBuffer : EventTarget {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
52
|
+
attribute AppendMode mode;
|
|
53
|
+
readonly attribute boolean updating;
|
|
54
|
+
readonly attribute TimeRanges buffered;
|
|
55
|
+
attribute double timestampOffset;
|
|
56
|
+
readonly attribute AudioTrackList audioTracks;
|
|
57
|
+
readonly attribute VideoTrackList videoTracks;
|
|
58
|
+
readonly attribute TextTrackList textTracks;
|
|
59
|
+
attribute double appendWindowStart;
|
|
60
|
+
attribute unrestricted double appendWindowEnd;
|
|
61
|
+
|
|
62
|
+
attribute EventHandler onupdatestart;
|
|
63
|
+
attribute EventHandler onupdate;
|
|
64
|
+
attribute EventHandler onupdateend;
|
|
65
|
+
attribute EventHandler onerror;
|
|
66
|
+
attribute EventHandler onabort;
|
|
67
|
+
|
|
68
|
+
undefined appendBuffer(BufferSource data);
|
|
69
|
+
undefined abort();
|
|
70
|
+
undefined changeType(DOMString type);
|
|
71
|
+
undefined remove(double start, unrestricted double end);
|
|
68
72
|
};
|
|
69
73
|
|
|
70
74
|
[Exposed=(Window,DedicatedWorker)]
|
|
71
75
|
interface SourceBufferList : EventTarget {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
+
readonly attribute unsigned long length;
|
|
77
|
+
|
|
78
|
+
attribute EventHandler onaddsourcebuffer;
|
|
79
|
+
attribute EventHandler onremovesourcebuffer;
|
|
80
|
+
|
|
81
|
+
getter SourceBuffer (unsigned long index);
|
|
76
82
|
};
|
|
77
83
|
|
|
78
84
|
[Exposed=(Window,DedicatedWorker)]
|
|
@@ -103,15 +109,15 @@ interface ManagedSourceBuffer : SourceBuffer {
|
|
|
103
109
|
|
|
104
110
|
[Exposed=(Window,DedicatedWorker)]
|
|
105
111
|
partial interface AudioTrack {
|
|
106
|
-
|
|
112
|
+
readonly attribute SourceBuffer? sourceBuffer;
|
|
107
113
|
};
|
|
108
114
|
|
|
109
115
|
[Exposed=(Window,DedicatedWorker)]
|
|
110
116
|
partial interface VideoTrack {
|
|
111
|
-
|
|
117
|
+
readonly attribute SourceBuffer? sourceBuffer;
|
|
112
118
|
};
|
|
113
119
|
|
|
114
120
|
[Exposed=(Window,DedicatedWorker)]
|
|
115
121
|
partial interface TextTrack {
|
|
116
|
-
|
|
122
|
+
readonly attribute SourceBuffer? sourceBuffer;
|
|
117
123
|
};
|
package/package.json
CHANGED
package/sanitizer-api.idl
CHANGED
|
@@ -3,36 +3,49 @@
|
|
|
3
3
|
// (https://github.com/w3c/webref)
|
|
4
4
|
// Source: HTML Sanitizer API (https://wicg.github.io/sanitizer-api/)
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
constructor(optional SanitizerConfig config = {});
|
|
6
|
+
partial interface Element {
|
|
7
|
+
[CEReactions] undefined setHTMLUnsafe__TO_BE_MERGED(DOMString html, optional SanitizerConfig config = {});
|
|
8
|
+
[CEReactions] undefined setHTML(DOMString html, optional SanitizerConfig config = {});
|
|
9
|
+
};
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
partial interface ShadowRoot {
|
|
12
|
+
[CEReactions] undefined setHTMLUnsafe__TO_BE_MERGED(DOMString html, optional SanitizerConfig config = {});
|
|
13
|
+
[CEReactions] undefined setHTML(DOMString html, optional SanitizerConfig config = {});
|
|
14
|
+
};
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
static SanitizerConfig
|
|
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 = {});
|
|
17
19
|
};
|
|
18
20
|
|
|
19
|
-
dictionary
|
|
20
|
-
|
|
21
|
+
dictionary SanitizerElementNamespace {
|
|
22
|
+
required DOMString name;
|
|
23
|
+
DOMString? _namespace = "http://www.w3.org/1999/xhtml";
|
|
21
24
|
};
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
|
|
26
|
+
// Used by "elements"
|
|
27
|
+
dictionary SanitizerElementNamespaceWithAttributes : SanitizerElementNamespace {
|
|
28
|
+
sequence<SanitizerAttribute> attributes;
|
|
29
|
+
sequence<SanitizerAttribute> removeAttributes;
|
|
25
30
|
};
|
|
26
31
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
boolean allowCustomElements;
|
|
34
|
-
boolean allowUnknownMarkup;
|
|
35
|
-
boolean allowComments;
|
|
32
|
+
typedef (DOMString or SanitizerElementNamespace) SanitizerElement;
|
|
33
|
+
typedef (DOMString or SanitizerElementNamespaceWithAttributes) SanitizerElementWithAttributes;
|
|
34
|
+
|
|
35
|
+
dictionary SanitizerAttributeNamespace {
|
|
36
|
+
required DOMString name;
|
|
37
|
+
DOMString? _namespace = null;
|
|
36
38
|
};
|
|
39
|
+
typedef (DOMString or SanitizerAttributeNamespace) SanitizerAttribute;
|
|
40
|
+
|
|
41
|
+
dictionary SanitizerConfig {
|
|
42
|
+
sequence<SanitizerElementWithAttributes> elements;
|
|
43
|
+
sequence<SanitizerElement> removeElements;
|
|
44
|
+
sequence<SanitizerElement> replaceWithChildrenElements;
|
|
37
45
|
|
|
38
|
-
|
|
46
|
+
sequence<SanitizerAttribute> attributes;
|
|
47
|
+
sequence<SanitizerAttribute> removeAttributes;
|
|
48
|
+
|
|
49
|
+
boolean comments;
|
|
50
|
+
boolean dataAttributes;
|
|
51
|
+
};
|
package/url.idl
CHANGED
|
@@ -9,6 +9,8 @@ partial dictionary AudioEncoderConfig {
|
|
|
9
9
|
|
|
10
10
|
dictionary OpusEncoderConfig {
|
|
11
11
|
OpusBitstreamFormat format = "opus";
|
|
12
|
+
OpusSignal signal = "auto";
|
|
13
|
+
OpusApplication application = "audio";
|
|
12
14
|
[EnforceRange] unsigned long long frameDuration = 20000;
|
|
13
15
|
[EnforceRange] unsigned long complexity;
|
|
14
16
|
[EnforceRange] unsigned long packetlossperc = 0;
|
|
@@ -20,3 +22,15 @@ enum OpusBitstreamFormat {
|
|
|
20
22
|
"opus",
|
|
21
23
|
"ogg",
|
|
22
24
|
};
|
|
25
|
+
|
|
26
|
+
enum OpusSignal {
|
|
27
|
+
"auto",
|
|
28
|
+
"music",
|
|
29
|
+
"voice",
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
enum OpusApplication {
|
|
33
|
+
"voip",
|
|
34
|
+
"audio",
|
|
35
|
+
"lowdelay",
|
|
36
|
+
};
|
package/webcodecs.idl
CHANGED
|
@@ -158,8 +158,8 @@ dictionary VideoDecoderConfig {
|
|
|
158
158
|
|
|
159
159
|
dictionary AudioEncoderConfig {
|
|
160
160
|
required DOMString codec;
|
|
161
|
-
[EnforceRange] unsigned long sampleRate;
|
|
162
|
-
[EnforceRange] unsigned long numberOfChannels;
|
|
161
|
+
[EnforceRange] required unsigned long sampleRate;
|
|
162
|
+
[EnforceRange] required unsigned long numberOfChannels;
|
|
163
163
|
[EnforceRange] unsigned long long bitrate;
|
|
164
164
|
BitrateMode bitrateMode = "variable";
|
|
165
165
|
};
|