mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
LibWeb: Implement the HTMLTrackElement.kind attribute
This reflects the HTML `kind` attribute.
This commit is contained in:
committed by
Andreas Kling
parent
0c4f257021
commit
bdaa7f0e8e
Notes:
sideshowbarker
2024-07-17 20:19:08 +09:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/bdaa7f0e8e Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/316
@@ -1,12 +1,22 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/media.html#attr-track-kind
|
||||
[MissingValueDefault=subtitles, InvalidValueDefault=metadata]
|
||||
enum TrackKindAttribute {
|
||||
"subtitles",
|
||||
"captions",
|
||||
"descriptions",
|
||||
"chapters",
|
||||
"metadata"
|
||||
};
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/media.html#htmltrackelement
|
||||
[Exposed=Window]
|
||||
interface HTMLTrackElement : HTMLElement {
|
||||
|
||||
[HTMLConstructor] constructor();
|
||||
|
||||
[FIXME, CEReactions] attribute DOMString kind;
|
||||
[CEReactions, Enumerated=TrackKindAttribute, Reflect] attribute DOMString kind;
|
||||
[CEReactions, Reflect] attribute DOMString src;
|
||||
[CEReactions, Reflect] attribute DOMString srclang;
|
||||
[CEReactions, Reflect] attribute DOMString label;
|
||||
|
||||
Reference in New Issue
Block a user