serenity/Userland/Libraries/LibWeb/HTML/TextTrackList.idl
Jamie Mansfield a09b52e40f LibWeb/HTML: Implement TextTrackList IDL interface
(cherry picked from commit ecad28657a0941c99870bdb72f3a6f09b6db6ee3)
2024-07-14 14:01:30 -04:00

13 lines
409 B
Text

#import <DOM/EventTarget.idl>
// https://html.spec.whatwg.org/multipage/media.html#texttracklist
[Exposed=Window]
interface TextTrackList : EventTarget {
readonly attribute unsigned long length;
getter TextTrack (unsigned long index);
TextTrack? getTrackById(DOMString id);
attribute EventHandler onchange;
attribute EventHandler onaddtrack;
attribute EventHandler onremovetrack;
};