Skip to content
Permalink
Browse files

[giow] (0) Rename the command API. Instead of reusing the existing AP…

…Is, we'll have an entirely new (readonly) API. Trying to reuse the existing API was an interesting idea but

git-svn-id: http://svn.whatwg.org/webapps@6286 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed Jul 11, 2011
1 parent a5f93a8 commit 8b9bdf183712f9d67c95671c2f3e2feee6f47fa8
Showing with 109 additions and 128 deletions.
  1. +36 −41 complete.html
  2. +36 −41 index
  3. +37 −46 source

<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1>Web Applications 1.0</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 8 July 2011</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 11 July 2011</h2>
</hgroup><dl><dt>Multiple-page version:</dt>
<dd><a href=http://www.whatwg.org/specs/web-apps/current-work/complete/>http://www.whatwg.org/specs/web-apps/current-work/complete/</a></dd>
<dt>One-page version:</dt>

// <a href=#command-api>command API</a>
readonly attribute DOMString? <a href=#dom-command-ro-commandtype title=dom-command-ro-commandType>commandType</a>;
readonly attribute DOMString? <a href=#dom-command-ro-label title=dom-command-ro-label>label</a>;
readonly attribute DOMString? <a href=#dom-command-ro-icon title=dom-command-ro-icon>icon</a>;
readonly attribute boolean <a href=#dom-command-ro-disabled title=dom-command-ro-disabled>disabled</a>;
readonly attribute boolean <a href=#dom-command-ro-checked title=dom-command-ro-checked>checked</a>;<!-- v2COMMAND
readonly attribute <span>HTMLCollection</span> <span title="dom-command-ro-triggers">triggers</span>;-->
readonly attribute DOMString? <a href=#dom-command-ro-commandlabel title=dom-command-ro-commandLabel>commandLabel</a>;
readonly attribute DOMString? <a href=#dom-command-ro-commandicon title=dom-command-ro-commandIcon>commandIcon</a>;
readonly attribute boolean? <a href=#dom-command-ro-commandhidden title=dom-command-ro-commandHidden>commandHidden</a>;
readonly attribute boolean? <a href=#dom-command-ro-commanddisabled title=dom-command-ro-commandDisabled>commandDisabled</a>;
readonly attribute boolean? <a href=#dom-command-ro-commandchecked title=dom-command-ro-commandChecked>commandChecked</a>;<!-- v2COMMAND
readonly attribute <span>HTMLCollection</span> <span title="dom-command-ro-commandTriggers">commandTriggers</span>;-->

// <span>styling</span>
readonly attribute <span>CSSStyleDeclaration</span> <a href=#dom-style title=dom-style>style</a>;

</dd>

<dt><var title="">element</var> . <code title=dom-command-ro-label><a href=#dom-command-ro-label>label</a></code></dt>
<dt><var title="">element</var> . <code title=dom-command-ro-commandLabel><a href=#dom-command-ro-commandlabel>commandLabel</a></code></dt>

<dd>


</dd>

<dt><var title="">element</var> . <code title=dom-command-ro-icon><a href=#dom-command-ro-icon>icon</a></code></dt>
<dt><var title="">element</var> . <code title=dom-command-ro-commandIcon><a href=#dom-command-ro-commandicon>commandIcon</a></code></dt>

<dd>


</dd>

<dt><var title="">element</var> . <code title=dom-hidden><a href=#dom-hidden>hidden</a></code></dt>
<dt><var title="">element</var> . <code title=dom-command-ro-commandHidden><a href=#dom-command-ro-commandhidden>commandHidden</a></code></dt>

<dd>

<p>Exposes the state of the element's <code title=attr-hidden><a href=#the-hidden-attribute>hidden</a></code> attribute, which is generally
equivalent to the <a href=#command-facet-hiddenstate title=command-facet-HiddenState>Hidden
State</a> facet of the command. For <code><a href=#the-label-element>label</a></code> and
<code><a href=#the-legend-element>legend</a></code> elements (used in conjunction with the <code title=attr-accesskey><a href=#the-accesskey-attribute>accesskey</a></code> attribute), the <a href=#command-facet-hiddenstate title=command-facet-HiddenState>Hidden State</a> facet is
derived from another element (the one that the <a href=#assigned-access-key>assigned
access key</a> will trigger), and cannot be directly accessed
from the element.</p>
<p>Exposes the <a href=#command-facet-hiddenstate title=command-facet-HiddenState>Hidden State</a> facet of the command.</p>

</dd>

<dt><var title="">element</var> . <code title=dom-command-ro-disabled><a href=#dom-command-ro-disabled>disabled</a></code></dt>
<dt><var title="">element</var> . <code title=dom-command-ro-commandDisabled><a href=#dom-command-ro-commanddisabled>commandDisabled</a></code></dt>

<dd>

<p>Exposes the <a href=#command-facet-disabledstate title=command-facet-DisabledState>Disabled State</a> facet of the command.</p>

</dd>

<dt><var title="">element</var> . <code title=dom-command-ro-checked><a href=#dom-command-ro-checked>checked</a></code></dt>
<dt><var title="">element</var> . <code title=dom-command-ro-commandChecked><a href=#dom-command-ro-commandchecked>commandChecked</a></code></dt>

<dd>

</dd>

<!--v2COMMAND
<dt><var title="">element</var> . <code title="dom-command-ro-triggers">triggers</code></dt>
<dt><var title="">element</var> . <code title="dom-command-ro-commandTriggers">commandTriggers</code></dt>

<dd>

element is "command", "radio", or "checkbox" respectively. If the
element does not define a command, it must return null.</p>

<p>The <dfn id=dom-command-ro-label title=dom-command-ro-label><code>label</code></dfn>
<p>The <dfn id=dom-command-ro-commandlabel title=dom-command-ro-commandLabel><code>commandLabel</code></dfn>
attribute must return the command's <a href=#command-facet-label title=command-facet-Label>Label</a>, or null if the element
does not define a command or does not specify a <a href=#command-facet-label title=command-facet-Label>Label</a>. This attribute will be
shadowed by the <code title="">label</code> IDL attribute on
various elements.</p>
does not define a command or does not specify a <a href=#command-facet-label title=command-facet-Label>Label</a>.</p>

<p>The <dfn id=dom-command-ro-icon title=dom-command-ro-icon><code>icon</code></dfn>
<p>The <dfn id=dom-command-ro-commandicon title=dom-command-ro-commandIcon><code>commandIcon</code></dfn>
attribute must return the <a href=#absolute-url>absolute URL</a> of the command's
<a href=#command-facet-icon title=command-facet-Icon>Icon</a>. If the element does
not specify an icon, or if the element does not define a command,
then the attribute must return null. This attribute will be shadowed
by the <code title=dom-command-icon><a href=#dom-command-icon>icon</a></code> IDL attribute on
<code><a href=#the-command-element>command</a></code> elements.</p>
then the attribute must return null.</p>

<p>The <dfn id=dom-command-ro-disabled title=dom-command-ro-disabled><code>disabled</code></dfn>
<p>The <dfn id=dom-command-ro-commandhidden title=dom-command-ro-commandHidden><code>commandHidden</code></dfn>
attribute must return true if the command's <a href=#command-facet-hiddenstate title=command-facet-HiddenState>Hidden State</a> is that the
command is hidden, and false if the command is not hidden. If the
element does not define a command, the attribute must return
null.</p>

<p>The <dfn id=dom-command-ro-commanddisabled title=dom-command-ro-commandDisabled><code>commandDisabled</code></dfn>
attribute must return true if the command's <a href=#command-facet-disabledstate title=command-facet-DisabledState>Disabled State</a> is that
the command is disabled, and false if the command is not
disabled. This attribute is not affected by the command's <a href=#command-facet-hiddenstate title=command-facet-HiddenState>Hidden State</a>. If the
the command is disabled, and false if the command is not disabled.
This attribute is not affected by the command's <a href=#command-facet-hiddenstate title=command-facet-HiddenState>Hidden State</a>. If the
element does not define a command, the attribute must return
false. This attribute will be shadowed by the <code title="">disabled</code> IDL attribute on various elements.</p>
null.</p>

<p>The <dfn id=dom-command-ro-checked title=dom-command-ro-checked><code>checked</code></dfn> attribute
must return true if the command's <a href=#command-facet-checkedstate title=command-facet-CheckedState>Checked State</a> is that the
<p>The <dfn id=dom-command-ro-commandchecked title=dom-command-ro-commandChecked><code>commandChecked</code></dfn>
attribute must return true if the command's <a href=#command-facet-checkedstate title=command-facet-CheckedState>Checked State</a> is that the
command is checked, and false if it is that the command is not
checked. If the element does not define a command, the attribute
must return false. This attribute will be shadowed by the <code title="">checked</code> IDL attribute on <code><a href=#the-input-element>input</a></code> and
<code><a href=#the-command-element>command</a></code> elements.</p>
must return null.</p>

<!--v2COMMAND
<p>The <dfn
title="dom-command-ro-triggers"><code>triggers</code></dfn>
title="dom-command-ro-commandTriggers"><code>commandTriggers</code></dfn>
attribute must return a list containing the elements that can
trigger the command (the command's <span
title="command-facet-Triggers">Triggers</span>). The list must be
-->

<p class=note>The <a href=#command-facet-id title=command-facet-ID>ID</a> facet
is exposed by the <code title=dom-id><a href=#dom-id>id</a></code> IDL attribute,
the <a href=#command-facet-hint title=command-facet-Hint>Hint</a> facet is exposed by
the <code title=dom-title><a href=#dom-title>title</a></code> IDL attribute, the <a href=#command-facet-accesskey title=command-facet-AccessKey>AccessKey</a> facet is exposed by
is exposed by the <code title=dom-id><a href=#dom-id>id</a></code> IDL attribute, the
<a href=#command-facet-hint title=command-facet-Hint>Hint</a> facet is exposed by the
<code title=dom-title><a href=#dom-title>title</a></code> IDL attribute, and the <a href=#command-facet-accesskey title=command-facet-AccessKey>AccessKey</a> facet is exposed by
the <code title=dom-accessKeyLabel><a href=#dom-accesskeylabel>accessKeyLabel</a></code> IDL
attribute, and the <a href=#command-facet-hiddenstate title=command-facet-HiddenState>Hidden
State</a> facet is exposed by the <code title=dom-hidden><a href=#dom-hidden>hidden</a></code> IDL attribute.</p>
attribute.</p>

</div>

0 comments on commit 8b9bdf1

Please sign in to comment.
You can’t perform that action at this time.