[html5] r1130 - /

whatwg at whatwg.org whatwg at whatwg.org
Tue Nov 6 07:26:27 PST 2007


Author: ianh
Date: 2007-11-06 07:26:25 -0800 (Tue, 06 Nov 2007)
New Revision: 1130

Modified:
   index
   source
Log:
[] (0) Make it legal to have multiple keywords in rel='', but only for rel=up.

Modified: index
===================================================================
--- index	2007-11-05 23:30:14 UTC (rev 1129)
+++ index	2007-11-06 15:26:25 UTC (rev 1130)
@@ -22,7 +22,7 @@
 
    <h1 id=html-5>HTML 5</h1>
 
-   <h2 class="no-num no-toc" id=working>Working Draft — 5 November 2007</h2>
+   <h2 class="no-num no-toc" id=working>Working Draft — 6 November 2007</h2>
 
    <p>You can take part in this work. <a
     href="http://www.whatwg.org/mailing-list">Join the working group's
@@ -3215,7 +3215,7 @@
 
   <p>The <code><a href="#domtokenlist0">DOMTokenList</a></code> interface
    represents an interface to an underlying string that consists of an <a
-   href="#unordered">unordered set of space-separated tokens</a>.
+   href="#unordered">unordered set of unique space-separated tokens</a>.
 
   <p>Which string underlies a particular <code><a
    href="#domtokenlist0">DOMTokenList</a></code> object is defined when the
@@ -3553,7 +3553,7 @@
   <p>The <dfn id=getelementsbyclassname
    title=dom-document-getElementsByClassName><code>getElementsByClassName(<var
    title="">classNames</var>)</code></dfn> method takes a string that
-   contains an <a href="#unordered">unordered set of space-separated
+   contains an <a href="#unordered">unordered set of unique space-separated
    tokens</a> 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
@@ -5590,9 +5590,9 @@
    tokens</a> may have leading or trailing <a href="#space" title="space
    character">space characters</a>.
 
-  <p>An <dfn id=unordered>unordered set of space-separated tokens</dfn> is a
-   <a href="#set-of">set of space-separated tokens</a> where none of the
-   words are duplicated.
+  <p>An <dfn id=unordered>unordered set of unique space-separated
+   tokens</dfn> is a <a href="#set-of">set of space-separated tokens</a>
+   where none of the words are duplicated.
 
   <p>An <dfn id=ordered>ordered set of unique space-separated tokens</dfn> is
    a <a href="#set-of">set of space-separated tokens</a> where none of the
@@ -6533,8 +6533,8 @@
    attribute specified.
 
   <p>The attribute, if specified, must have a value that is an <a
-   href="#unordered">unordered set of space-separated tokens</a> representing
-   the various classes that the element belongs to.
+   href="#unordered">unordered set of unique space-separated tokens</a>
+   representing the various classes that the element belongs to.
 
   <p>The classes that an <a href="#html-elements" title="HTML elements">HTML
    element</a> has assigned to it consists of all the classes returned when
@@ -7164,8 +7164,8 @@
 
   <p>The type of link indicated (the relationship) is given by the value of
    the <dfn id=rel title=attr-link-rel><code>rel</code></dfn> attribute,
-   which must be present, and must have a value that is an <a
-   href="#unordered">unordered set of space-separated tokens</a>. The <a
+   which must be present, and must have a value that is a <a
+   href="#set-of">set of space-separated tokens</a>. The <a
    href="#linkTypes">allowed values and their meanings</a> are defined in a
    later section. If the <code title=attr-link-rel><a
    href="#rel">rel</a></code> attribute is absent, or if the value used is
@@ -23637,12 +23637,12 @@
 
   <p>The <dfn id=mode title=attr-rule-mode><code>mode</code></dfn> attribute,
    if specified, must have a value that is an <a href="#unordered">unordered
-   set of space-separated tokens</a> representing the various modes for which
-   the rule applies. When, and only when, the <code title=attr-rule-mode><a
-   href="#mode">mode</a></code> attribute is omitted, the rule applies if and
-   only if the mode is the empty string. A mode is invoked by the <code><a
-   href="#nest">nest</a></code> element; for the first node (the root node)
-   of the data tree, the mode is the empty string.
+   set of unique space-separated tokens</a> representing the various modes
+   for which the rule applies. When, and only when, the <code
+   title=attr-rule-mode><a href="#mode">mode</a></code> attribute is omitted,
+   the rule applies if and only if the mode is the empty string. A mode is
+   invoked by the <code><a href="#nest">nest</a></code> element; for the
+   first node (the root node) of the data tree, the mode is the empty string.
 
   <p>The contents of <code><a href="#rule">rule</a></code> elements form a
    template, and may be anything that, when the parent <code><a
@@ -31139,14 +31139,14 @@
    relationship between the document containing the hyperlink and the
    destination resource indicated by the hyperlink is given by the value of
    the element's <dfn id=rel3 title=attr-hyperlink-rel><code>rel</code></dfn>
-   attribute, which must be an <a href="#unordered">unordered set of
-   space-separated tokens</a>. The <a href="#linkTypes">allowed values and
-   their meanings</a> are defined below. The <code
-   title=attr-hyperlink-rel><a href="#rel3">rel</a></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.
+   attribute, which must be a <a href="#set-of">set of space-separated
+   tokens</a>. The <a href="#linkTypes">allowed values and their meanings</a>
+   are defined below. The <code title=attr-hyperlink-rel><a
+   href="#rel3">rel</a></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>The <dfn id=media12 title=attr-hyperlink-media><code>media</code></dfn>
    attribute describes for which media the target document was designed. It
@@ -31312,6 +31312,9 @@
    string on spaces">split on spaces</a>. The resulting tokens are the link
    types that apply to that element.
 
+  <p>Unless otherwise specified, a keyword must not be specified more than
+   once per <code title=attr-rel-hyperlink>rel</code> attribute.
+
   <table>
    <thead>
     <tr>
@@ -32141,6 +32144,12 @@
 </nav></pre>
   </div>
 
+  <p class=note>The <code title=dom-a-relList><a
+   href="#rellist0">relList</a></code> DOM attribute (e.g. on the <code><a
+   href="#a">a</a></code> element) does not currently represent multiple
+   <code title=rel-up><a href="#up">up</a></code> keywords (the interface
+   hides duplicates).
+
   <h5 id=sequential0><span class=secno>4.12.3.20. </span>Sequential link
    types</h5>
 

Modified: source
===================================================================
--- source	2007-11-05 23:30:14 UTC (rev 1129)
+++ source	2007-11-06 15:26:25 UTC (rev 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>




More information about the Commit-Watchers mailing list