Closed
Bug 871184
Opened 11 years ago
Closed 11 years ago
[webvtt] HTMLTrackElement kind enum list should be case-insensitive
Categories
(Core :: Audio/Video, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: msaad, Assigned: reyre)
References
Details
Attachments
(1 file)
2.24 KB,
text/plain
|
Details |
The enumerated list that represents the possible values for kind should always return case case-insensitive values.
Reporter | ||
Comment 1•11 years ago
|
||
Comment 2•11 years ago
|
||
This should simply not be an enum.
Assignee | ||
Updated•11 years ago
|
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → rick.eyre
Assignee | ||
Comment 3•11 years ago
|
||
This test case actually works perfectly fine for me. We're also using the case insensitive version of nsAttrValue::ParseEnumValue. So we're handling this behaviour correctly as of now. It would be useful to include this in the current suite of DOM tests so I'll make sure to do that when updating bug 833386.
Comment 4•11 years ago
|
||
There is a still a bug, though. track.kind = "foo"; is(track.getAttribute("kind"), "foo"); should pass.
Comment 5•11 years ago
|
||
according to the draft, all of the track attributes are read only, except for "mode". this should not pass
Assignee | ||
Comment 6•11 years ago
|
||
I've been wondering about that too. If you try to set though HTMLTrackElement.[prop] it won't work, which is the behaviour we want. However, using the setAttribute() like in this test case works.
Comment 7•11 years ago
|
||
interface HTMLTrackElement : HTMLElement { attribute TextTrackKind kind; attribute DOMString src; attribute DOMString srclang; attribute DOMString label; 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; readonly attribute TextTrack track; };
Comment 8•11 years ago
|
||
yes,i was referring to TextTrack, different interface.
Assignee | ||
Comment 9•11 years ago
|
||
Marking this as resolved as it is currently properly working with case-insensitive values. Will open a new bug for possibly changing HTMLTrackElement.kind from an enum to DOMString as per Ms2ger's requests.
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•