HTML Standard Tracker

Diff (omit for latest revision)
Filter

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

File a bug

SVNBugCommentTime (UTC)
1130Make it legal to have multiple keywords in rel='', but only for rel=up.2007-11-06 15:26
Index: source
===================================================================
--- source	(revision 1129)
+++ source	(revision 1130)
@@ -1642,7 +1642,7 @@
 
   <p>The <code>DOMTokenList</code> interface represents an interface
   to an underlying string that consists of an <span>unordered set of
-  space-separated tokens</span>.</p>
+  unique space-separated tokens</span>.</p>
 
   <p>Which string underlies a particular <code>DOMTokenList</code>
   object is defined when the object is created. It might be a content
@@ -1987,14 +1987,14 @@
   <p>The <dfn
   title="dom-document-getElementsByClassName"><code>getElementsByClassName(<var
   title="">classNames</var>)</code></dfn> method takes a string that
-  contains an <span>unordered set of space-separated tokens</span>
-  representing classes. When called, the method must return a live
-  <code>NodeList</code> object containing all the elements in the
-  document that have all the classes specified in that argument,
-  having obtained the classes by <span title="split a string on
-  spaces">splitting a string on spaces</span>. If there are no tokens
-  specified in the argument, then the method must return an empty
-  <code>NodeList</code>.</p>
+  contains an <span>unordered set of unique space-separated
+  tokens</span> representing classes. When called, the method must
+  return a live <code>NodeList</code> object containing all the
+  elements in the document that have all the classes specified in that
+  argument, having obtained the classes by <span title="split a string
+  on spaces">splitting a string on spaces</span>. If there are no
+  tokens specified in the argument, then the method must return an
+  empty <code>NodeList</code>.</p>
 
   <p>The <dfn
   title="dom-getElementsByClassName"><code>getElementsByClassName()</code></dfn>
@@ -4183,7 +4183,7 @@
   may have leading or trailing <span title="space character">space
   characters</span>.</p>
 
-  <p>An <dfn>unordered set of space-separated tokens</dfn> is a
+  <p>An <dfn>unordered set of unique space-separated tokens</dfn> is a
   <span>set of space-separated tokens</span> where none of the words
   are duplicated.</p>
 
@@ -5058,8 +5058,8 @@
   <code title="attr-class">class</code> attribute specified.</p>
 
   <p>The attribute, if specified, must have a value that is an
-  <span>unordered set of space-separated tokens</span> representing
-  the various classes that the element belongs to.</p>
+  <span>unordered set of unique space-separated tokens</span>
+  representing the various classes that the element belongs to.</p>
 
   <p>The classes that an <span title="HTML elements">HTML
   element</span> has assigned to it consists of all the classes
@@ -5652,8 +5652,8 @@
 
   <p>The type of link indicated (the relationship) is given by the
   value of the <dfn title="attr-link-rel"><code>rel</code></dfn>
-  attribute, which must be present, and must have a value that is an
-  <span>unordered set of space-separated tokens</span>. The <a
+  attribute, which must be present, and must have a value that is a
+  <span>set of space-separated tokens</span>. The <a
   href="#linkTypes">allowed values and their meanings</a> are defined
   in a later section. If the <code title="attr-link-rel">rel</code>
   attribute is absent, or if the value used is not allowed according
@@ -21162,12 +21162,13 @@
 
   <p>The <dfn title="attr-rule-mode"><code>mode</code></dfn>
   attribute, if specified, must have a value that is an
-  <span>unordered set of space-separated tokens</span> representing
-  the various modes for which the rule applies. When, and only when,
-  the <code title="attr-rule-mode">mode</code> attribute is omitted,
-  the rule applies if and only if the mode is the empty string. A mode
-  is invoked by the <code>nest</code> element; for the first node (the
-  root node) of the data tree, the mode is the empty string.</p>
+  <span>unordered set of unique space-separated tokens</span>
+  representing the various modes for which the rule applies. When, and
+  only when, the <code title="attr-rule-mode">mode</code> attribute is
+  omitted, the rule applies if and only if the mode is the empty
+  string. A mode is invoked by the <code>nest</code> element; for the
+  first node (the root node) of the data tree, the mode is the empty
+  string.</p>
 
   <p>The contents of <code>rule</code> elements form a template, and
   may be anything that, when the parent <code>datatemplate</code> is
@@ -28705,13 +28706,13 @@
   hyperlink and the destination resource indicated by the hyperlink is
   given by the value of the element's <dfn
   title="attr-hyperlink-rel"><code>rel</code></dfn> attribute, which
-  must be an <span>unordered set of space-separated tokens</span>. The
-  <a href="#linkTypes">allowed values and their meanings</a> are
-  defined below. The <code title="attr-hyperlink-rel">rel</code>
-  attribute has no default value. If the attribute is omitted or if
-  none of the values in the attribute are recognised by the UA, then
-  the document has no particular relationship with the destination
-  resource other than there being a hyperlink between the two.</p>
+  must be a <span>set of space-separated tokens</span>. The <a
+  href="#linkTypes">allowed values and their meanings</a> are defined
+  below. The <code title="attr-hyperlink-rel">rel</code> attribute has
+  no default value. If the attribute is omitted or if none of the
+  values in the attribute are recognised by the UA, then the document
+  has no particular relationship with the destination resource other
+  than there being a hyperlink between the two.</p>
 
   <p>The <dfn title="attr-hyperlink-media"><code>media</code></dfn>
   attribute describes for which media the target document was
@@ -28889,6 +28890,10 @@
   spaces">split on spaces</span>. The resulting tokens are the link
   types that apply to that element.</p>
 
+  <p>Unless otherwise specified, a keyword must not be specified more
+  than once per <code title="attr-rel-hyperlink">rel</code>
+  attribute.</p>
+
   <table>
    <thead>
     <tr>
@@ -29607,7 +29612,12 @@
 
   </div>
 
+  <p class="note">The <code title="dom-a-relList">relList</code> DOM
+  attribute (e.g. on the <code>a</code> element) does not currently
+  represent multiple <code title="rel-up">up</code> keywords (the
+  interface hides duplicates).</p>
 
+
   <h5>Sequential link types</h5>
 
   <p>Some documents form part of a sequence of documents.</p>

|