Skip to content

Commit

Permalink
[] (0) Comment out the <command default=''> feature because 'default'…
Browse files Browse the repository at this point in the history
… is a reserved word in JS and I can't come up with a better name. Also, 'default' isn't a critical feature, so it can wait for a future version.

git-svn-id: http://svn.whatwg.org/webapps@3067 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed May 3, 2009
1 parent 955708b commit a8e0f2e
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 38 deletions.
53 changes: 30 additions & 23 deletions index
Expand Up @@ -38631,7 +38631,7 @@ interface <dfn id=renderingcontext2dcallback>RenderingContext2DCallback</dfn> {
<dd><code title=attr-command-disabled><a href=#attr-command-disabled>disabled</a></code></dd>
<dd><code title=attr-command-checked><a href=#attr-command-checked>checked</a></code></dd>
<dd><code title=attr-command-radiogroup><a href=#attr-command-radiogroup>radiogroup</a></code></dd>
<dd><code title=attr-command-default><a href=#attr-command-default>default</a></code></dd>
<!--<dd><code title="attr-command-default">default</code></dd>-->
<dd>Also, the <code title=attr-command-title><a href=#attr-command-title>title</a></code> attribute has special semantics on this element.</dd>
<dt>DOM interface:</dt>
<dd>
Expand All @@ -38641,8 +38641,8 @@ interface <dfn id=renderingcontext2dcallback>RenderingContext2DCallback</dfn> {
attribute DOMString <a href=#dom-command-icon title=dom-command-icon>icon</a>;
attribute boolean <a href=#dom-command-disabled title=dom-command-disabled>disabled</a>;
attribute boolean <a href=#dom-command-checked title=dom-command-checked>checked</a>;
attribute DOMString <a href=#dom-command-radiogroup title=dom-command-radiogroup>radiogroup</a>;
attribute boolean <a href=#dom-command-default title=dom-command-default>default</a>;
attribute DOMString <a href=#dom-command-radiogroup title=dom-command-radiogroup>radiogroup</a>;<!--
attribute boolean <span title="dom-command-default">default</span>;-->
void <a href=#dom-command-click title=dom-command-click>click</a>(); // shadows <code><a href=#htmlelement>HTMLElement</a></code>.<code title=dom-click><a href=#dom-click>click()</a></code>
};</pre>
</dd>
Expand Down Expand Up @@ -38718,30 +38718,35 @@ interface <dfn id=renderingcontext2dcallback>RenderingContext2DCallback</dfn> {
toggled when the command itself is toggled, for commands whose <code title=attr-command-type><a href=#attr-command-type>type</a></code> attribute has the value "<code title="">radio</code>". The scope of the name is the child list of
the parent element. The attribute must be omitted unless the <code title=attr-command-type><a href=#attr-command-type>type</a></code> attribute is in the <a href=#attr-command-type-state-radio title=attr-command-type-state-radio>Radio</a> state.</p>

<p>If the <code><a href=#the-command>command</a></code> element is used when <span title="menu generation">generating</span> a <span>context
menu</span>, then the <dfn id=attr-command-default title=attr-command-default><code>default</code></dfn> attribute
<!--
<p>If the <code>command</code> element is used when <span
title="menu generation">generating</span> a <span>context
menu</span>, then the <dfn
title="attr-command-default"><code>default</code></dfn> attribute
indicates, if present, that the command is the one that would have
been invoked if the user had directly activated the menu's subject
instead of using its context menu. The <code title=attr-command-default><a href=#attr-command-default>default</a></code> attribute is a
<a href=#boolean-attribute>boolean attribute</a>. The attribute must be omitted unless
the <code title=attr-command-type><a href=#attr-command-type>type</a></code> attribute is in the
<a href=#attr-command-type-state-command title=attr-command-type-state-command>Command</a>
instead of using its context menu. The <code
title="attr-command-default">default</code> attribute is a
<span>boolean attribute</span>. The attribute must be omitted unless
the <code title="attr-command-type">type</code> attribute is in the
<span title="attr-command-type-state-command">Command</span>
state.</p>

<div class=example>
<div class="example">

<p class=XXX>Need an example that shows an element that, if
double-clicked, invokes an action, but that also has a context
menu, showing the various <code><a href=#the-command>command</a></code> attributes off, and
that has a default command.</p>
...an example that shows an element that, if double-clicked,
invokes an action, but that also has a context menu, showing the
various <code>command</code> attributes off, and that has a default
command...

</div>
-->

<div class=impl>

<p>The <dfn id=dom-command-type title=dom-command-type><code>type</code></dfn>, <dfn id=dom-command-label title=dom-command-label><code>label</code></dfn>, <dfn id=dom-command-icon title=dom-command-icon><code>icon</code></dfn>, <dfn id=dom-command-disabled title=dom-command-disabled><code>disabled</code></dfn>, <dfn id=dom-command-checked title=dom-command-checked><code>checked</code></dfn>, <dfn id=dom-command-radiogroup title=dom-command-radiogroup><code>radiogroup</code></dfn>, and
<dfn id=dom-command-default title=dom-command-default><code>default</code></dfn> DOM
attributes must <a href=#reflect>reflect</a> the respective content
<p>The <dfn id=dom-command-type title=dom-command-type><code>type</code></dfn>, <dfn id=dom-command-label title=dom-command-label><code>label</code></dfn>, <dfn id=dom-command-icon title=dom-command-icon><code>icon</code></dfn>, <dfn id=dom-command-disabled title=dom-command-disabled><code>disabled</code></dfn>, <dfn id=dom-command-checked title=dom-command-checked><code>checked</code></dfn>, and <dfn id=dom-command-radiogroup title=dom-command-radiogroup><code>radiogroup</code></dfn><!--,
and <dfn title="dom-command-default"><code>default</code></dfn>-->
DOM attributes must <a href=#reflect>reflect</a> the respective content
attributes of the same name.</p>

<p>The <dfn id=dom-command-click title=dom-command-click><code>click()</code></dfn>
Expand Down Expand Up @@ -39183,9 +39188,10 @@ explain that only direct children of the <menu> matter
<dl class=switch><dt>An element that <a href=#concept-command title=concept-command>defines a command</a></dt>

<dd>Append the command to the menu, respecting its <a href=#concept-facet title=concept-facet>facets</a><!-- XXX be explicit about what
this means for each facet -->. If the element is a
<code><a href=#the-command>command</a></code> element with a <code title=attr-command-default><a href=#attr-command-default>default</a></code> attribute, mark the
command as being a default command.</dd> <!-- XXX if there's an
this means for each facet -->. <!--If the element is a
<code>command</code> element with a <code
title="attr-command-default">default</code> attribute, mark the
command as being a default command.--></dd> <!-- XXX if there's an
Icon facet for the command, it should be <span
title="fetch">fetched</span>, and then that image should be
associated with the command, such that each command only has its
Expand Down Expand Up @@ -40185,9 +40191,10 @@ explain that only direct children of the <menu> matter

<li><code><a href=#the-input-element>input</a></code> elements whose <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the <a href=#submit-button-state title=attr-input-type-submit>Submit Button</a> or <a href=#image-button-state title=attr-input-type-image>Image Button</a> state, and that
are their form's <a href=#default-button>default button</a></li>

<li><code><a href=#the-command>command</a></code> elements that have a <code title=attr-command-default><a href=#attr-command-default>default</a></code> attribute</li>

<!--
<li><code>command</code> elements that have a <code
title="attr-command-default">default</code> attribute</li>
-->
</ul></dd>


Expand Down
32 changes: 17 additions & 15 deletions source
Expand Up @@ -43499,7 +43499,7 @@ interface <dfn>RenderingContext2DCallback</dfn> {
<dd><code title="attr-command-disabled">disabled</code></dd>
<dd><code title="attr-command-checked">checked</code></dd>
<dd><code title="attr-command-radiogroup">radiogroup</code></dd>
<dd><code title="attr-command-default">default</code></dd>
<!--<dd><code title="attr-command-default">default</code></dd>-->
<dd>Also, the <code title="attr-command-title">title</code> attribute has special semantics on this element.</dd>
<dt>DOM interface:</dt>
<dd>
Expand All @@ -43509,8 +43509,8 @@ interface <dfn>RenderingContext2DCallback</dfn> {
attribute DOMString <span title="dom-command-icon">icon</span>;
attribute boolean <span title="dom-command-disabled">disabled</span>;
attribute boolean <span title="dom-command-checked">checked</span>;
attribute DOMString <span title="dom-command-radiogroup">radiogroup</span>;
attribute boolean <span title="dom-command-default">default</span>;
attribute DOMString <span title="dom-command-radiogroup">radiogroup</span>;<!--
attribute boolean <span title="dom-command-default">default</span>;-->
void <span title="dom-command-click">click</span>(); // shadows <code>HTMLElement</code>.<code title="dom-click">click()</code>
};</pre>
</dd>
Expand Down Expand Up @@ -43608,6 +43608,7 @@ interface <dfn>RenderingContext2DCallback</dfn> {
title="attr-command-type">type</code> attribute is in the <span
title="attr-command-type-state-radio">Radio</span> state.</p>

<!--
<p>If the <code>command</code> element is used when <span
title="menu generation">generating</span> a <span>context
menu</span>, then the <dfn
Expand All @@ -43623,23 +43624,24 @@ interface <dfn>RenderingContext2DCallback</dfn> {

<div class="example">

<p class="XXX">Need an example that shows an element that, if
double-clicked, invokes an action, but that also has a context
menu, showing the various <code>command</code> attributes off, and
that has a default command.</p>
...an example that shows an element that, if double-clicked,
invokes an action, but that also has a context menu, showing the
various <code>command</code> attributes off, and that has a default
command...

</div>
-->

<div class="impl">

<p>The <dfn title="dom-command-type"><code>type</code></dfn>, <dfn
title="dom-command-label"><code>label</code></dfn>, <dfn
title="dom-command-icon"><code>icon</code></dfn>, <dfn
title="dom-command-disabled"><code>disabled</code></dfn>, <dfn
title="dom-command-checked"><code>checked</code></dfn>, <dfn
title="dom-command-radiogroup"><code>radiogroup</code></dfn>, and
<dfn title="dom-command-default"><code>default</code></dfn> DOM
attributes must <span>reflect</span> the respective content
title="dom-command-checked"><code>checked</code></dfn>, and <dfn
title="dom-command-radiogroup"><code>radiogroup</code></dfn><!--,
and <dfn title="dom-command-default"><code>default</code></dfn>-->
DOM attributes must <span>reflect</span> the respective content
attributes of the same name.</p>

<p>The <dfn title="dom-command-click"><code>click()</code></dfn>
Expand Down Expand Up @@ -44138,10 +44140,10 @@ explain that only direct children of the <menu> matter

<dd>Append the command to the menu, respecting its <span
title="concept-facet">facets</span><!-- XXX be explicit about what
this means for each facet -->. If the element is a
this means for each facet -->. <!--If the element is a
<code>command</code> element with a <code
title="attr-command-default">default</code> attribute, mark the
command as being a default command.</dd> <!-- XXX if there's an
command as being a default command.--></dd> <!-- XXX if there's an
Icon facet for the command, it should be <span
title="fetch">fetched</span>, and then that image should be
associated with the command, such that each command only has its
Expand Down Expand Up @@ -45354,10 +45356,10 @@ explain that only direct children of the <menu> matter
title="attr-input-type-submit">Submit Button</span> or <span
title="attr-input-type-image">Image Button</span> state, and that
are their form's <span>default button</span></li>
<!--
<li><code>command</code> elements that have a <code
title="attr-command-default">default</code> attribute</li>

-->
</ul>

</dd>
Expand Down

0 comments on commit a8e0f2e

Please sign in to comment.