script: Implement the HTMLTrackElement API

Implement the basics of the HTMLTrackElement and update the wpt tests.
This commit is contained in:
Dan Robertson 2019-01-07 23:21:30 +00:00
parent 121cbd0078
commit c4802076b3
No known key found for this signature in database
GPG key ID: 45C4A652C47E42A5
24 changed files with 152 additions and 382 deletions

View file

@ -5,22 +5,22 @@
// https://html.spec.whatwg.org/multipage/#htmltrackelement
[HTMLConstructor]
interface HTMLTrackElement : HTMLElement {
// [CEReactions]
// attribute DOMString kind;
// [CEReactions]
// attribute DOMString src;
// [CEReactions]
// attribute DOMString srclang;
// [CEReactions]
// attribute DOMString label;
// [CEReactions]
// attribute boolean default;
[CEReactions]
attribute DOMString kind;
[CEReactions]
attribute USVString src;
[CEReactions]
attribute DOMString srclang;
[CEReactions]
attribute DOMString label;
[CEReactions]
attribute boolean default;
// const unsigned short NONE = 0;
// const unsigned short LOADING = 1;
// const unsigned short LOADED = 2;
// const unsigned short ERROR = 3;
// readonly attribute unsigned short readyState;
const unsigned short NONE = 0;
const unsigned short LOADING = 1;
const unsigned short LOADED = 2;
const unsigned short ERROR = 3;
readonly attribute unsigned short readyState;
// readonly attribute TextTrack track;
readonly attribute TextTrack track;
};