1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:37:37 +00:00

LibWeb: Reorder and add missing HTML elements IDL items

This commit is contained in:
Bastiaan van der Plaat 2023-10-25 17:26:24 +02:00 committed by Andreas Kling
parent 54cdcd0d06
commit fc46def2f5
42 changed files with 220 additions and 48 deletions

View file

@ -19,6 +19,7 @@ interface HTMLMediaElement : HTMLElement {
// network state
[Reflect, CEReactions] attribute DOMString src;
// FIXME: attribute MediaProvider? srcObject;
readonly attribute USVString currentSrc;
[Reflect=crossorigin, CEReactions] attribute DOMString? crossOrigin;
const unsigned short NETWORK_EMPTY = 0;
@ -26,6 +27,7 @@ interface HTMLMediaElement : HTMLElement {
const unsigned short NETWORK_LOADING = 2;
const unsigned short NETWORK_NO_SOURCE = 3;
readonly attribute unsigned short networkState;
// FIXME: [CEReactions] attribute DOMString preload;
readonly attribute TimeRanges buffered;
undefined load();
CanPlayTypeResult canPlayType(DOMString type);
@ -43,7 +45,13 @@ interface HTMLMediaElement : HTMLElement {
attribute double currentTime;
undefined fastSeek(double time);
readonly attribute unrestricted double duration;
// FIXME: object getStartDate();
readonly attribute boolean paused;
// FIXME: attribute double defaultPlaybackRate;
// FIXME: attribute double playbackRate;
// FIXME: attribute boolean preservesPitch;
// FIXME: readonly attribute TimeRanges played;
// FIXME: readonly attribute TimeRanges seekable;
readonly attribute boolean ended;
[Reflect, CEReactions] attribute boolean autoplay;
[Reflect, CEReactions] attribute boolean loop;
@ -59,4 +67,7 @@ interface HTMLMediaElement : HTMLElement {
// tracks
[SameObject] readonly attribute AudioTrackList audioTracks;
[SameObject] readonly attribute VideoTrackList videoTracks;
// FIXME: [SameObject] readonly attribute TextTrackList textTracks;
// FIXME: TextTrack addTextTrack(TextTrackKind kind, optional DOMString label = "", optional DOMString language = "");
};