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