Bug 103256
Summary: | Calling addTextTrack("SUBTITLES") should throw a SYNTAX_ERR error | ||
---|---|---|---|
Product: | WebKit | Reporter: | Antoine Quint <graouts> |
Component: | Media | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | eric.carlson, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | http://w3c-test.org/html/tests/submission/Opera/media/interfaces/HTMLElement/HTMLMediaElement/addTextTrack.html |
Antoine Quint
The HTML5 spec is clear about the supported values for the the `kind` parameter of the `addTextTrack` method (see http://www.whatwg.org/specs/web-apps/current-work/#dom-media-addtexttrack). While lower-case "subtitles" is an acceptable value, upper-case "SUBTITLES" is not and calling `.addTextTrack("SUBTITLES")` should throw a SYNTAX_ERR error. The test at http://w3c-test.org/html/tests/submission/Opera/media/interfaces/HTMLElement/HTMLMediaElement/addTextTrack.html fails due to this.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Antoine Quint
<rdar://problem/12756197>
Antoine Quint
*** This bug has been marked as a duplicate of bug 103411 ***