[Bug 21851] revert removal of text and getCueAsHTML members; address constructor changes

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

Ian 'Hixie' Hickson <ian@hixie.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ian@hixie.ch

--- Comment #2 from Ian 'Hixie' Hickson <ian@hixie.ch> ---
These members don't make sense for all formats.

We could have a common interface that inherits from TextTrackCue and is
inherited by WebVTT, though, if it's so common that duplicating the two members
in multiple interfaces is considered bad. But that seems like overkill.

(In reply to comment #0)
> 
> (1) it is no longer possible to create or add a text track cue to a text
> track by programmatic means (JS) when not using VTT;

That's not true; you can use whatever API the format provides. If your UA
supports DVD cues, for example, there could be a .setImage() method that takes
a BitmapImage. It's up to the cue's spec, just like WebVTT exposes the
attributes mentioned in this bug.


> (2) it is no longer possible to access a text form of the cue by
> programmatic means (JS) when not using VTT;
> (3) it is no longer possible to access an HTML form of the cue by
> programmatic means (JS) when not using VTT;

Again, for formats where doing so makes sense, the format's API can just expose
these attributes and methods.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Friday, 26 April 2013 23:48:19 UTC