On Sat, Sep 7, 2013 at 11:16 AM, Brendan Long <self@brendanlong.com> wrote:
> On 09/06/2013 08:29 PM, Glenn Adams wrote:
> > interface TTMLCue {
> > DocumentFragment getCueAsTTML(); // obtain TTML intermediate
> > synchronic document (ISD)
> > DocumentFragment getCueAsHTML(); // obtain HTML rendering of TTML ISD
> > }
> >
> > where the first of these allows access to the TTML ISD source (as an
> > XML node tree), and the second allows access to the mapped HTML
> > rendering of this source.
> >
> > If there is a inherited text attribute, it will return null on get and
> > raise exception on put.
> It sounds like you're just renaming .text to getCueAsTTML(). Why not
> just put the TTML intermediate synchronic document in .text?
>
Not at all. If there is a TTMLCue object, the UA is parsing TTML (as XML)
into TTML document fragments (i.e., XML fragments in DOM form). Since the
UA is already doing this, it would be highly inefficient to deserialize
into text, and require the client script to reparse.