Permalink
Browse files

[] (0) Make it legal to have multiple keywords in rel='', but only fo…

…r rel=up.

git-svn-id: http://svn.whatwg.org/webapps@1130 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed Nov 6, 2007
1 parent 7966775 commit 5539b38a9b46e0e4dc09dd776f158eecc86bcad6
Showing with 70 additions and 51 deletions.
  1. +33 −24 index
  2. +37 −27 source
57 index
@@ -22,7 +22,7 @@

<h1 id=html-5>HTML 5</h1>

<h2 class="no-num no-toc" id=working>Working Draft &mdash; 5 November 2007</h2>
<h2 class="no-num no-toc" id=working>Working Draft &mdash; 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 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E..

<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 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E..
<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 @@ data:text/xml,<script xmlns="http://www.w3.org/1999/xhtml"><![CDATA[ alert('test
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 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0
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 @@ class="main"> or <div class="content">. Why do we also need a body?

<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 @@ XXX selection ranges -->

<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 @@ interface <dfn id=sqlstatementerrorcallback>SQLStatementErrorCallback</dfn> {
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 @@ interface <dfn id=sqlstatementerrorcallback>SQLStatementErrorCallback</dfn> {
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 @@ at the first element with the given ID must be treated as if it was cloned and r
&lt;/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>

64 source
@@ -1642,7 +1642,7 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E..

<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 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E..
<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 @@ data:text/xml,<script xmlns="http://www.w3.org/1999/xhtml"><![CDATA[ alert('test
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 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0
<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 @@ class="main"> or <div class="content">. Why do we also need a body?

<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 @@ XXX selection ranges -->

<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 @@ interface <dfn>SQLStatementErrorCallback</dfn> {
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 @@ interface <dfn>SQLStatementErrorCallback</dfn> {
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,6 +29612,11 @@ at the first element with the given ID must be treated as if it was cloned and r

</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>

0 comments on commit 5539b38

Please sign in to comment.