W3C home > Mailing lists > Public > public-texttracks@w3.org > December 2011

WebVTT DOM construction rules and class=""

From: Simon Pieters <simonp@opera.com>
Date: Thu, 29 Dec 2011 14:39:30 +0100
To: "public-texttracks@w3.org" <public-texttracks@w3.org>
Message-ID: <op.v686v4fnidj3kv@simon-pieterss-macbook.local>
hi

"HTMLElement nodes created as part of the mapping described above must  
have their namespaceURI set to the HTML namespace, and must have a class  
attribute set to the string obtained by concatenating all the classes that  
apply to the corresponding WebVTT Internal Node Object, each separated  
 from the next by a single U+0020 SPACE character."
http://dev.w3.org/html5/webvtt/#webvtt-cue-text-dom-construction-rules

This says that all elements must have a class attribute, even if it  
doesn't have any classes. That seems undesirable. If no classes apply to  
the WebVTT internal Node Object, the DOM node should have no class  
attribute.

(I'm happy with <v> objects always having a title="" attribute in the DOM,  
since that makes it possible to distinguish <c> and <v>.)

-- 
Simon Pieters
Opera Software
Received on Thursday, 29 December 2011 13:40:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 16:57:01 GMT