Skip to content

Commit

Permalink
[c] (0) Make a note that this is where command='''s syntax is defined…
Browse files Browse the repository at this point in the history
…, and also make <menuitem> something that can be legally given in a detached subtree

Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=22518
Affected topics: HTML

git-svn-id: http://svn.whatwg.org/webapps@8026 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jul 3, 2013
1 parent 815f6fe commit 5dd19dc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
8 changes: 5 additions & 3 deletions complete.html
Expand Up @@ -57009,16 +57009,18 @@ <h4 id=the-menuitem-element><span class=secno>4.11.4 </span>The <dfn><code>menui
attribute must be omitted unless the <code title=attr-menuitem-type><a href=#attr-menuitem-type>type</a></code> attribute is in
the <a href=#attr-menuitem-type-state-radio title=attr-menuitem-type-state-radio>Radio</a> state.</p>

<hr><p>If a <code><a href=#the-menuitem-element>menuitem</a></code> element <var title="">slave</var> has a <dfn id=attr-menuitem-command title=attr-menuitem-command><code>command</code></dfn> attribute, and <var title="">slave</var>
is <a href=#in-a-document>in a <code>Document</code></a>, and there is an element in that <code><a href=#document>Document</a></code>
<hr><p>If a <code><a href=#the-menuitem-element>menuitem</a></code> element <var title="">slave</var> has a <dfn id=attr-menuitem-command title=attr-menuitem-command><code>command</code></dfn> attribute, and there is an element in <var title="">slave</var>'s <a href=#home-subtree>home subtree</a>
whose <a href=#concept-id title=concept-id>ID</a> has a value equal to the value of <var title="">slave</var>'s <code title=attr-menuitem-command><a href=#attr-menuitem-command>command</a></code> attribute, and the first
such element in <a href=#tree-order>tree order</a>, hereafter <var title="">master</var>, itself <a href=#concept-command title=concept-command>defines a command</a> and either is not a <code><a href=#the-menuitem-element>menuitem</a></code> element
or does not itself have a <code title=attr-menuitem-command><a href=#attr-menuitem-command>command</a></code> attribute, then the
<dfn id=master-command>master command</dfn> of <var title="">slave</var> is <var title="">master</var>.</p>

<p>An element with a <code title=attr-menuitem-command><a href=#attr-menuitem-command>command</a></code> attribute must have a
<p>A <code><a href=#the-menuitem-element>menuitem</a></code> element with a <code title=attr-menuitem-command><a href=#attr-menuitem-command>command</a></code> attribute must have a
<a href=#master-command>master command</a>.</p>

<p class=note>This effectively defines the syntax of the attribute's value as being the ID of
another element that <a href=#concept-command title=concept-command>defines a command</a>.</p>

<hr><p>The <dfn id=attr-menuitem-title title=attr-menuitem-title><code>title</code></dfn> attribute gives a hint describing
the command, which might be shown to the user to help him.</p>

Expand Down
8 changes: 5 additions & 3 deletions index
Expand Up @@ -57009,16 +57009,18 @@ fur
attribute must be omitted unless the <code title=attr-menuitem-type><a href=#attr-menuitem-type>type</a></code> attribute is in
the <a href=#attr-menuitem-type-state-radio title=attr-menuitem-type-state-radio>Radio</a> state.</p>

<hr><p>If a <code><a href=#the-menuitem-element>menuitem</a></code> element <var title="">slave</var> has a <dfn id=attr-menuitem-command title=attr-menuitem-command><code>command</code></dfn> attribute, and <var title="">slave</var>
is <a href=#in-a-document>in a <code>Document</code></a>, and there is an element in that <code><a href=#document>Document</a></code>
<hr><p>If a <code><a href=#the-menuitem-element>menuitem</a></code> element <var title="">slave</var> has a <dfn id=attr-menuitem-command title=attr-menuitem-command><code>command</code></dfn> attribute, and there is an element in <var title="">slave</var>'s <a href=#home-subtree>home subtree</a>
whose <a href=#concept-id title=concept-id>ID</a> has a value equal to the value of <var title="">slave</var>'s <code title=attr-menuitem-command><a href=#attr-menuitem-command>command</a></code> attribute, and the first
such element in <a href=#tree-order>tree order</a>, hereafter <var title="">master</var>, itself <a href=#concept-command title=concept-command>defines a command</a> and either is not a <code><a href=#the-menuitem-element>menuitem</a></code> element
or does not itself have a <code title=attr-menuitem-command><a href=#attr-menuitem-command>command</a></code> attribute, then the
<dfn id=master-command>master command</dfn> of <var title="">slave</var> is <var title="">master</var>.</p>

<p>An element with a <code title=attr-menuitem-command><a href=#attr-menuitem-command>command</a></code> attribute must have a
<p>A <code><a href=#the-menuitem-element>menuitem</a></code> element with a <code title=attr-menuitem-command><a href=#attr-menuitem-command>command</a></code> attribute must have a
<a href=#master-command>master command</a>.</p>

<p class=note>This effectively defines the syntax of the attribute's value as being the ID of
another element that <a href=#concept-command title=concept-command>defines a command</a>.</p>

<hr><p>The <dfn id=attr-menuitem-title title=attr-menuitem-title><code>title</code></dfn> attribute gives a hint describing
the command, which might be shown to the user to help him.</p>

Expand Down
8 changes: 5 additions & 3 deletions source
Expand Up @@ -63047,18 +63047,20 @@ fur
<hr>

<p>If a <code>menuitem</code> element <var title="">slave</var> has a <dfn
title="attr-menuitem-command"><code>command</code></dfn> attribute, and <var title="">slave</var>
is <span>in a <code>Document</code></span>, and there is an element in that <code>Document</code>
title="attr-menuitem-command"><code>command</code></dfn> attribute, and there is an element in <var title="">slave</var>'s <span>home subtree</span>
whose <span title="concept-id">ID</span> has a value equal to the value of <var
title="">slave</var>'s <code title="attr-menuitem-command">command</code> attribute, and the first
such element in <span>tree order</span>, hereafter <var title="">master</var>, itself <span
title="concept-command">defines a command</span> and either is not a <code>menuitem</code> element
or does not itself have a <code title="attr-menuitem-command">command</code> attribute, then the
<dfn>master command</dfn> of <var title="">slave</var> is <var title="">master</var>.</p>

<p>An element with a <code title="attr-menuitem-command">command</code> attribute must have a
<p>A <code>menuitem</code> element with a <code title="attr-menuitem-command">command</code> attribute must have a
<span>master command</span>.</p>

<p class="note">This effectively defines the syntax of the attribute's value as being the ID of
another element that <span title="concept-command">defines a command</span>.</p>

<hr>

<p>The <dfn title="attr-menuitem-title"><code>title</code></dfn> attribute gives a hint describing
Expand Down

0 comments on commit 5dd19dc

Please sign in to comment.