mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
script: Implement the HTMLTrackElement API
Implement the basics of the HTMLTrackElement and update the wpt tests.
This commit is contained in:
parent
121cbd0078
commit
c4802076b3
24 changed files with 152 additions and 382 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue