Bug 103256

Summary: Calling addTextTrack("SUBTITLES") should throw a SYNTAX_ERR error
Product: WebKit Reporter: Antoine Quint <graouts>
Component: MediaAssignee: 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
Reported 2012-11-26 08:04:23 PST
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
Antoine Quint
Comment 1 2012-11-27 01:52:19 PST
Antoine Quint
Comment 2 2012-12-04 02:34:08 PST
*** This bug has been marked as a duplicate of bug 103411 ***
Note You need to log in before you can comment on or make changes to this bug.