[html5] r1899 - [] (0) Make <bb> define a command.
whatwg at whatwg.org
whatwg at whatwg.org
Mon Jul 21 19:39:32 PDT 2008
Author: ianh
Date: 2008-07-21 19:39:31 -0700 (Mon, 21 Jul 2008)
New Revision: 1899
Modified:
index
source
Log:
[] (0) Make <bb> define a command.
Modified: index
===================================================================
--- index 2008-07-22 02:25:55 UTC (rev 1898)
+++ index 2008-07-22 02:39:31 UTC (rev 1899)
@@ -1019,6 +1019,9 @@
<li><a href="#using3"><span class=secno>4.11.6.5. </span>Using the
<code>command</code> element to define a command</a>
+
+ <li><a href="#using4"><span class=secno>4.11.6.6. </span>Using the
+ <code>bb</code> element to define a command</a>
</ul>
</ul>
@@ -28861,13 +28864,13 @@
elements that define commands and have IDs.
<p>The following elements can define commands: <code title=a-command><a
- href="#using4">a</a></code>, <code title=button-command><a
- href="#using5">button</a></code>, <code title=input-command><a
- href="#using6">input</a></code>, <code title=option-command><a
- href="#using7">option</a></code>, <code title=command-element><a
+ href="#using5">a</a></code>, <code title=button-command><a
+ href="#using6">button</a></code>, <code title=input-command><a
+ href="#using7">input</a></code>, <code title=option-command><a
+ href="#using8">option</a></code>, <code title=command-element><a
href="#command3">command</a></code>.
- <h5 id=using><span class=secno>4.11.6.1. </span><dfn id=using4
+ <h5 id=using><span class=secno>4.11.6.1. </span><dfn id=using5
title=a-command>Using the <code>a</code> element to define a command</dfn></h5>
<p>An <code><a href="#a">a</a></code> element with an <code
@@ -28912,7 +28915,7 @@
command is to <a href="#firing" title="fire a click event">fire a <code
title="">click</code> event</a> at the element.
- <h5 id=using0><span class=secno>4.11.6.2. </span><dfn id=using5
+ <h5 id=using0><span class=secno>4.11.6.2. </span><dfn id=using6
title=button-command>Using the <code>button</code> element to define a
command</dfn></h5>
@@ -28927,7 +28930,7 @@
title=command-facet-HiddenState>Hidden State</a>, <a href="#checked2"
title=command-facet-CheckedState>Checked State</a>, and <a href="#action"
title=command-facet-Action>Action</a> facets of the command are determined
- <a href="#using4" title=a-command>as for <code>a</code> elements</a> (see
+ <a href="#using5" title=a-command>as for <code>a</code> elements</a> (see
the previous section).
<p>The <a href="#disabled7" title=command-facet-DisabledState>Disabled
@@ -28938,7 +28941,7 @@
<code>move-up</code> button type is disabled when it would have no
effect).
- <h5 id=using1><span class=secno>4.11.6.3. </span><dfn id=using6
+ <h5 id=using1><span class=secno>4.11.6.3. </span><dfn id=using7
title=input-command>Using the <code>input</code> element to define a
command</dfn></h5>
@@ -29011,7 +29014,7 @@
is probably wrong for radio and checkbox types, depending on how we
define <input>. -->
- <h5 id=using2><span class=secno>4.11.6.4. </span><dfn id=using7
+ <h5 id=using2><span class=secno>4.11.6.4. </span><dfn id=using8
title=option-command>Using the <code>option</code> element to define a
command</dfn></h5>
@@ -29131,6 +29134,66 @@
<!-- XXX update to
point to dom-click when we remove dom-command-click -->
+ <h5 id=using4><span class=secno>4.11.6.6. </span><dfn id=using9
+ title=bb-command>Using the <code>bb</code> element to define a
+ command</dfn></h5>
+
+ <p>A <code><a href="#bb">bb</a></code> element always <a href="#command1"
+ title=concept-command>defines a command</a>.
+
+ <p>The <a href="#type19" title=command-facet-Type>Type</a> of the command
+ is "command".
+
+ <p>The <a href="#id1" title=command-facet-ID>ID</a> of the command is the
+ value of the <code title=attr-id><a href="#id">id</a></code> attribute of
+ the element, if the attribute is present and not empty. Otherwise the
+ command is an <a href="#anonymous">anonymous command</a>.
+
+ <p>The <a href="#label3" title=command-facet-Label>Label</a> of the command
+ is the string given by the element's <code><a
+ href="#textcontent">textContent</a></code> DOM attribute, if that is not
+ the empty string, or a user-agent-defined string appropriate for the
+ <code><a href="#bb">bb</a></code> element's <code title=attr-bb-type><a
+ href="#type15">type</a></code> attribute's state.
+
+ <p>The <a href="#hint" title=command-facet-Hint>Hint</a> of the command is
+ the value of the <code title=attr-title><a href="#title">title</a></code>
+ attribute of the element. If the attribute is not present, the <a
+ href="#hint" title=command-facet-Hint>Hint</a> is a user-agent-defined
+ string appropriate for the <code><a href="#bb">bb</a></code> element's
+ <code title=attr-bb-type><a href="#type15">type</a></code> attribute's
+ state.
+
+ <p>The <a href="#icon1" title=command-facet-Icon>Icon</a> of the command is
+ the <a href="#absolute">absolute URL</a> obtained from <a href="#resolve"
+ title="resolve a url">resolving</a> the value of the <code
+ title=attr-img-src><a href="#src">src</a></code> attribute of the first
+ <code><a href="#img">img</a></code> element descendant of the element, if
+ there is such an element and resolving its attribute is successful.
+ Otherwise, the <a href="#icon1" title=command-facet-Icon>Icon</a> is a
+ user-agent-defined image appropriate for the <code><a
+ href="#bb">bb</a></code> element's <code title=attr-bb-type><a
+ href="#type15">type</a></code> attribute's state.
+
+ <p>The <a href="#hidden1" title=command-facet-HiddenState>Hidden State</a>
+ facet of the command is true if the <code><a href="#bb">bb</a></code>
+ element's <code title=attr-bb-type><a href="#type15">type</a></code>
+ attribute's state is not <i title=attr-bb-type-null-state><a
+ href="#null">null</a></i>.
+
+ <p>The <a href="#disabled7" title=command-facet-DisabledState>Disabled
+ State</a> facet of the command is true if the <code><a
+ href="#bb">bb</a></code> element's <code title=attr-bb-type><a
+ href="#type15">type</a></code> attribute's state's <i>relevance</i> is
+ false, and true otherwise.
+
+ <p>The <a href="#checked2" title=command-facet-CheckedState>Checked
+ State</a> of the command is always false. (The command is never checked.)
+
+ <p>The <a href="#action" title=command-facet-Action>Action</a> of the
+ command is to <a href="#firing" title="fire a click event">fire a <code
+ title="">click</code> event</a> at the element.
+
<h3 id=datatemplate><span class=secno>4.12 </span>Data Templates</h3>
<h4 id=introduction0><span class=secno>4.12.1 </span>Introduction</h4>
@@ -44761,7 +44824,7 @@
cell">in cell</a>", and "<a href="#in-select" title="insertion mode: in
select">in select</a>", are special, in that the other modes defer to them
at various times. When the algorithm below says that the user agent is to
- do something "<dfn id=using8>using the rules for</dfn> the <var
+ do something "<dfn id=using10>using the rules for</dfn> the <var
title="">m</var> insertion mode", where <var title="">m</var> is one of
these modes, the user agent must use the rules described under that
<span>insertion mode</span>'s section, but must leave the <span>insertion
@@ -47845,7 +47908,7 @@
<dt>A start tag whose tag name is "html"
<dd>
- <p>Process the token <a href="#using8">using the rules for</a> the "<a
+ <p>Process the token <a href="#using10">using the rules for</a> the "<a
href="#in-body" title="insertion mode: in body">in body</a>"
<span>insertion mode</span>.</p>
@@ -47915,7 +47978,7 @@
<dt>A start tag whose tag name is "html"
<dd>
- <p>Process the token <a href="#using8">using the rules for</a> the "<a
+ <p>Process the token <a href="#using10">using the rules for</a> the "<a
href="#in-body" title="insertion mode: in body">in body</a>"
<span>insertion mode</span>.</p>
@@ -48146,7 +48209,7 @@
<dt>A start tag whose tag name is "html"
<dd>
- <p>Process the token <a href="#using8">using the rules for</a> the "<a
+ <p>Process the token <a href="#using10">using the rules for</a> the "<a
href="#in-body" title="insertion mode: in body">in body</a>"
<span>insertion mode</span>.</p>
@@ -48172,7 +48235,7 @@
"style"
<dd>
- <p>Process the token <a href="#using8">using the rules for</a> the "<a
+ <p>Process the token <a href="#using10">using the rules for</a> the "<a
href="#in-head" title="insertion mode: in head">in head</a>"
<span>insertion mode</span>.</p>
@@ -48226,7 +48289,7 @@
<dt>A start tag whose tag name is "html"
<dd>
- <p>Process the token <a href="#using8">using the rules for</a> the "<a
+ <p>Process the token <a href="#using10">using the rules for</a> the "<a
href="#in-body" title="insertion mode: in body">in body</a>"
<span>insertion mode</span>.</p>
@@ -48256,7 +48319,7 @@
title="">head</code> element pointer</a> onto the <a href="#stack">stack
of open elements</a>.</p>
- <p>Process the token <a href="#using8">using the rules for</a> the "<a
+ <p>Process the token <a href="#using10">using the rules for</a> the "<a
href="#in-head" title="insertion mode: in head">in head</a>"
<span>insertion mode</span>.</p>
@@ -48320,7 +48383,7 @@
"eventsource", "link", "meta", "noframes", "script", "style", "title"
<dd>
- <p>Process the token <a href="#using8">using the rules for</a> the "<a
+ <p>Process the token <a href="#using10">using the rules for</a> the "<a
href="#in-head" title="insertion mode: in head">in head</a>"
<span>insertion mode</span>.</p>
@@ -49548,9 +49611,9 @@
href="#tainted">tainted</a> then act as described in the "anything else"
entry below.</p>
- <p>Otherwise, process the token <a href="#using8">using the rules for</a>
- the "<a href="#in-head" title="insertion mode: in head">in head</a>"
- <span>insertion mode</span>.</p>
+ <p>Otherwise, process the token <a href="#using10">using the rules
+ for</a> the "<a href="#in-head" title="insertion mode: in head">in
+ head</a>" <span>insertion mode</span>.</p>
<dt>A start tag whose tag name is "input"
@@ -49593,7 +49656,7 @@
<dd>
<p><a href="#parse2">Parse error</a>. Process the token <a
- href="#using8">using the rules for</a> the "<a href="#in-body"
+ href="#using10">using the rules for</a> the "<a href="#in-body"
title="insertion mode: in body">in body</a>" <span>insertion
mode</span>, except that if the <a href="#current5">current node</a> is
a <code><a href="#table">table</a></code>, <code><a
@@ -49674,7 +49737,7 @@
<dt>Anything else
<dd>
- <p>Process the token <a href="#using8">using the rules for</a> the "<a
+ <p>Process the token <a href="#using10">using the rules for</a> the "<a
href="#in-body" title="insertion mode: in body">in body</a>"
<span>insertion mode</span>.</p>
</dl>
@@ -49711,7 +49774,7 @@
<dt>A start tag whose tag name is "html"
<dd>
- <p>Process the token <a href="#using8">using the rules for</a> the "<a
+ <p>Process the token <a href="#using10">using the rules for</a> the "<a
href="#in-body" title="insertion mode: in body">in body</a>"
<span>insertion mode</span>.</p>
@@ -49837,7 +49900,7 @@
<dt>Anything else
<dd>
- <p>Process the token <a href="#using8">using the rules for</a> the "<a
+ <p>Process the token <a href="#using10">using the rules for</a> the "<a
href="#in-table" title="insertion mode: in table">in table</a>"
<span>insertion mode</span>.</p>
</dl>
@@ -49927,7 +49990,7 @@
<dt>Anything else
<dd>
- <p>Process the token <a href="#using8">using the rules for</a> the "<a
+ <p>Process the token <a href="#using10">using the rules for</a> the "<a
href="#in-table" title="insertion mode: in table">in table</a>"
<span>insertion mode</span>.</p>
</dl>
@@ -50015,7 +50078,7 @@
<dt>Anything else
<dd>
- <p>Process the token <a href="#using8">using the rules for</a> the "<a
+ <p>Process the token <a href="#using10">using the rules for</a> the "<a
href="#in-body" title="insertion mode: in body">in body</a>"
<span>insertion mode</span>.</p>
</dl>
@@ -50074,7 +50137,7 @@
<dt>A start tag whose tag name is "html"
<dd>
- <p>Process the token <a href="#using8">using the rules for</a> the "<a
+ <p>Process the token <a href="#using10">using the rules for</a> the "<a
href="#in-body" title="insertion mode: in body">in body</a>"
<span>insertion mode</span>.</p>
@@ -50197,7 +50260,7 @@
<dt>Anything else
<dd>
- <p>Process the token <a href="#using8">using the rules for</a> the "<a
+ <p>Process the token <a href="#using10">using the rules for</a> the "<a
href="#in-select" title="insertion mode: in select">in select</a>"
<span>insertion mode</span>.</p>
</dl>
@@ -50262,7 +50325,7 @@
<dt>An end tag
<dd>
- <p>Process the token <a href="#using8">using the rules for</a> the <a
+ <p>Process the token <a href="#using10">using the rules for</a> the <a
href="#secondary1">secondary insertion mode</a>.</p>
<p>If, after doing so, the <span>insertion mode</span> is still "<a
@@ -50393,7 +50456,7 @@
<!--U+000D CARRIAGE RETURN (CR),--> or U+0020 SPACE
<dd>
- <p>Process the token <a href="#using8">using the rules for</a> the "<a
+ <p>Process the token <a href="#using10">using the rules for</a> the "<a
href="#in-body" title="insertion mode: in body">in body</a>"
<span>insertion mode</span>.</p>
@@ -50414,7 +50477,7 @@
<dt>A start tag whose tag name is "html"
<dd>
- <p>Process the token <a href="#using8">using the rules for</a> the "<a
+ <p>Process the token <a href="#using10">using the rules for</a> the "<a
href="#in-body" title="insertion mode: in body">in body</a>"
<span>insertion mode</span>.</p>
@@ -50475,7 +50538,7 @@
<dt>A start tag whose tag name is "html"
<dd>
- <p>Process the token <a href="#using8">using the rules for</a> the "<a
+ <p>Process the token <a href="#using10">using the rules for</a> the "<a
href="#in-body" title="insertion mode: in body">in body</a>"
<span>insertion mode</span>.</p>
@@ -50516,7 +50579,7 @@
<dt>A start tag whose tag name is "noframes"
<dd>
- <p>Process the token <a href="#using8">using the rules for</a> the "<a
+ <p>Process the token <a href="#using10">using the rules for</a> the "<a
href="#in-head" title="insertion mode: in head">in head</a>"
<span>insertion mode</span>.</p>
@@ -50571,7 +50634,7 @@
<dt>A start tag whose tag name is "html"
<dd>
- <p>Process the token <a href="#using8">using the rules for</a> the "<a
+ <p>Process the token <a href="#using10">using the rules for</a> the "<a
href="#in-body" title="insertion mode: in body">in body</a>"
<span>insertion mode</span>.</p>
@@ -50584,7 +50647,7 @@
<dt>A start tag whose tag name is "noframes"
<dd>
- <p>Process the token <a href="#using8">using the rules for</a> the "<a
+ <p>Process the token <a href="#using10">using the rules for</a> the "<a
href="#in-head" title="insertion mode: in head">in head</a>"
<span>insertion mode</span>.</p>
@@ -50628,7 +50691,7 @@
<dt>A start tag whose tag name is "html"
<dd>
- <p>Process the token <a href="#using8">using the rules for</a> the "<a
+ <p>Process the token <a href="#using10">using the rules for</a> the "<a
href="#in-body" title="insertion mode: in body">in body</a>"
<span>insertion mode</span>.</p>
@@ -50670,7 +50733,7 @@
<dt>A start tag whose tag name is "html"
<dd>
- <p>Process the token <a href="#using8">using the rules for</a> the "<a
+ <p>Process the token <a href="#using10">using the rules for</a> the "<a
href="#in-body" title="insertion mode: in body">in body</a>"
<span>insertion mode</span>.</p>
Modified: source
===================================================================
--- source 2008-07-22 02:25:55 UTC (rev 1898)
+++ source 2008-07-22 02:39:31 UTC (rev 1899)
@@ -26603,8 +26603,62 @@
point to dom-click when we remove dom-command-click -->
+ <h5><dfn title="bb-command">Using the <code>bb</code> element to define a command</dfn></h5>
+ <p>A <code>bb</code> element always <span
+ title="concept-command">defines a command</span>.</p>
+ <p>The <span title="command-facet-Type">Type</span> of the command
+ is "command".</p>
+
+ <p>The <span title="command-facet-ID">ID</span> of the command is
+ the value of the <code title="attr-id">id</code> attribute of the
+ element, if the attribute is present and not empty. Otherwise the
+ command is an <span>anonymous command</span>.</p>
+
+ <p>The <span title="command-facet-Label">Label</span> of the command
+ is the string given by the element's <code>textContent</code> DOM
+ attribute, if that is not the empty string, or a user-agent-defined
+ string appropriate for the <code>bb</code> element's <code
+ title="attr-bb-type">type</code> attribute's state.</p>
+
+ <p>The <span title="command-facet-Hint">Hint</span> of the command
+ is the value of the <code title="attr-title">title</code> attribute
+ of the element. If the attribute is not present, the <span
+ title="command-facet-Hint">Hint</span> is a user-agent-defined
+ string appropriate for the <code>bb</code> element's <code
+ title="attr-bb-type">type</code> attribute's state.</p>
+
+ <p>The <span title="command-facet-Icon">Icon</span> of the command
+ is the <span>absolute URL</span> obtained from <span title="resolve
+ a url">resolving</span> the value of the <code
+ title="attr-img-src">src</code> attribute of the first
+ <code>img</code> element descendant of the element, if there is such
+ an element and resolving its attribute is successful. Otherwise, the
+ <span title="command-facet-Icon">Icon</span> is a user-agent-defined
+ image appropriate for the <code>bb</code> element's <code
+ title="attr-bb-type">type</code> attribute's state.</p>
+
+ <p>The <span title="command-facet-HiddenState">Hidden State</span>
+ facet of the command is true if the <code>bb</code> element's <code
+ title="attr-bb-type">type</code> attribute's state is not <i
+ title="attr-bb-type-null-state">null</i>.</p>
+
+ <p>The <span title="command-facet-DisabledState">Disabled
+ State</span> facet of the command is true if the <code>bb</code>
+ element's <code title="attr-bb-type">type</code> attribute's state's
+ <i>relevance</i> is false, and true otherwise.</p>
+
+ <p>The <span title="command-facet-CheckedState">Checked State</span>
+ of the command is always false. (The command is never checked.)</p>
+
+ <p>The <span title="command-facet-Action">Action</span> of the
+ command is to <span title="fire a click event">fire a <code
+ title="">click</code> event</span> at the element.</p>
+
+
+
+
<h3 id="datatemplate">Data Templates</h3>
<h4>Introduction</h4>
More information about the Commit-Watchers
mailing list