[Bug 16076] New: <track> This constructor is horrible. Too many arguments. Also, settings as a string? Ugh. Can we make it have one argument that takes an object with id, startTime, endTime, text, pauseOnExit and all the settings as properties instead? e.g. new TextTrackC

https://www.w3.org/Bugs/Public/show_bug.cgi?id=16076

           Summary: <track> This constructor is horrible. Too many
                    arguments. Also, settings as a string? Ugh. Can we
                    make it have one argument that takes an object with
                    id, startTime, endTime, text, pauseOnExit and all the
                    settings as properties instead? e.g. new TextTrackC
           Product: HTML WG
           Version: unspecified
          Platform: Other
               URL: http://www.whatwg.org/specs/web-apps/current-work/#tex
                    ttrackcue
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P3
         Component: other Hixie drafts (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: contributor@whatwg.org
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, simonp@opera.com


Specification:
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html
Multipage: http://www.whatwg.org/C#texttrackcue
Complete: http://www.whatwg.org/c#texttrackcue

Comment:
<track> This constructor is horrible. Too many arguments. Also, settings as a
string? Ugh. Can we make it have one argument that takes an object with id,
startTime, endTime, text, pauseOnExit and all the settings as properties
instead? e.g. new TextTrackCue({startTime:0, endTime:1, vertical:"lr",
text:"LOL"})

Posted from: 94.234.170.44 by simonp@opera.com
User agent: Opera/9.80 (Macintosh; Intel Mac OS X 10.7.2; U; en)
Presto/2.10.229 Version/11.61

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Wednesday, 22 February 2012 15:17:13 UTC