Skip to content

Commit 5b72865

Browse files
Update HTMLMediaElement.preload type and comment (#1113)
* Update HTMLMediaElement.preload type and comment * Apply suggestions from code review Co-authored-by: Kagami Sascha Rosylight <[email protected]> * Run baseline-accept on changes from code review Co-authored-by: Kagami Sascha Rosylight <[email protected]>
1 parent 21da71e commit 5b72865

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

baselines/dom.generated.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6940,8 +6940,8 @@ interface HTMLMediaElement extends HTMLElement {
69406940
playbackRate: number;
69416941
/** Gets TimeRanges for the current media resource that has been played. */
69426942
readonly played: TimeRanges;
6943-
/** Gets or sets the current playback position, in seconds. */
6944-
preload: string;
6943+
/** Gets or sets a value indicating what data should be preloaded, if any. */
6944+
preload: "none" | "metadata" | "auto" | "";
69456945
readonly readyState: number;
69466946
readonly remote: RemotePlayback;
69476947
/** Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked. */

inputfiles/comments.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1554,7 +1554,7 @@
15541554
"comment": "Gets or sets the current playback position, in seconds."
15551555
},
15561556
"preload": {
1557-
"comment": "Gets or sets the current playback position, in seconds."
1557+
"comment": "Gets or sets a value indicating what data should be preloaded, if any."
15581558
},
15591559
"networkState": {
15601560
"comment": "Gets the current network activity for the element."

inputfiles/overridingTypes.jsonc

+9
Original file line numberDiff line numberDiff line change
@@ -2792,6 +2792,15 @@
27922792
}
27932793
}
27942794
}
2795+
},
2796+
"HTMLMediaElement": {
2797+
"properties": {
2798+
"property": {
2799+
"preload": {
2800+
"overrideType": "\"none\" | \"metadata\" | \"auto\" | \"\""
2801+
}
2802+
}
2803+
}
27952804
}
27962805
}
27972806
},

0 commit comments

Comments
 (0)