HTML5 Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/7064

SVNBugCommentTime (UTC)
7064[Gecko] [Internet Explorer] [Opera] [Webkit] Don't include a class attribute if not necessary.2012-04-24 21:41
Index: source
===================================================================
--- source	(revision 7063)
+++ source	(revision 7064)
@@ -39238,10 +39238,10 @@
   <p><code>HTMLElement</code> nodes created as part of the mapping
   described above must have their <code
   title="dom-Node-namespaceURI">namespaceURI</code> set to the
-  <span>HTML namespace</span>, and must have a <code
-  title="attr-class">class</code> attribute set to the string obtained
-  by concatenating all the classes that apply to the corresponding
-  <span>WebVTT Internal Node Object</span>, each separated from the
+  <span>HTML namespace</span>, and, if any classes apply to the
+  corresponding <span>WebVTT Internal Node Object</span>, must have a
+  <code title="attr-class">class</code> attribute set to the string
+  obtained by concatenating all those classes, each separated from the
   next by a single U+0020 SPACE character.</p>
 
   <p>The <code title="dom-Node-ownerDocument">ownerDocument</code>

|