Re: TextTrackCue discussions

On Fri, 20 Sep 2013 14:48:54 +0200, Silvia Pfeiffer  
<silviapfeiffer1@gmail.com> wrote:

>> That seems a bit bogus since the data could be the empty string.
>
> If the data is empty, DOMString returns "null" IIUC.

No. If you pass null to a DOMString argument for a method it gets  
converted to "null" in WebIDL, but that's not a case being discussed here.  
What a DOMString attribute returns is up to the spec for that attribute to  
define. In the case of WebVTT and .text, it returns the empty string if  
the WebVTT cue has no data.

-- 
Simon Pieters
Opera Software

Received on Friday, 20 September 2013 13:02:09 UTC