Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue737 menuitem and groups #784

Merged
merged 3 commits into from
Jul 12, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4058,7 +4058,9 @@ <h4>Plain HTML or Polyfill DOM Result of the MathML Quadratic Formula</h4>
<td class="role-mustcontain">
<ul>
<!-- keep in sync with #menubar -->
<li><rref>group</rref> <abbr title="containing" class="symbol">→</abbr> <rref>menuitem</rref></li>
<li><rref>group</rref> <abbr title="containing" class="symbol">→</abbr> <rref>menuitemradio</rref></li>
<li><rref>group</rref> <abbr title="containing" class="symbol">→</abbr> <rref>menuitemcheckbox</rref></li>
<li><rref>menuitem</rref></li>
<li><rref>menuitemcheckbox</rref></li>
<li><rref>menuitemradio</rref></li>
Expand Down Expand Up @@ -4150,7 +4152,9 @@ <h4>Plain HTML or Polyfill DOM Result of the MathML Quadratic Formula</h4>
<td class="role-mustcontain">
<ul>
<!-- keep in sync with #menu -->
<li><rref>group</rref> <abbr title="containing" class="symbol">→</abbr> <rref>menuitem</rref></li>
<li><rref>group</rref> <abbr title="containing" class="symbol">→</abbr> <rref>menuitemradio</rref></li>
<li><rref>group</rref> <abbr title="containing" class="symbol">→</abbr> <rref>menuitemcheckbox</rref></li>
<li><rref>menuitem</rref></li>
<li><rref>menuitemcheckbox</rref></li>
<li><rref>menuitemradio</rref></li>
Expand Down Expand Up @@ -4201,7 +4205,7 @@ <h4>Plain HTML or Polyfill DOM Result of the MathML Quadratic Formula</h4>
<div class="role-description">
<p>An option in a set of choices contained by a <rref>menu</rref> or <rref>menubar</rref>.</p>
<p>Authors MAY disable a menu item with the <sref>aria-disabled</sref> attribute. If the menu item has its <pref>aria-haspopup</pref> attribute set to <code>true</code>, it indicates that the menu item may be used to launch a sub-level menu, and authors SHOULD display a new sub-level menu when the menu item is activated.</p>
<p>Authors MUST ensure that menu items are <a>owned</a> by an element with role <rref>menu</rref> or <rref>menubar</rref> in order to identify that they are related <a>widgets</a>. Authors MAY separate menu items into sets by use of a <rref>separator</rref> or an element with an equivalent role from the native markup language.</p>
<p>Authors MUST ensure that menu items are <a>owned</a> by an element with role <rref>group</rref>, <rref>menu</rref> or <rref>menubar</rref> in order to identify that they are related <a>widgets</a>. Authors MAY separate menu items into sets by use of a <rref>separator</rref> or an element with an equivalent role from the native markup language.</p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This to me suggests that a menuitem inside a group is valid even if that group does not descend from a menu. Do we want to clarify that menuitem instances must be contained within a menu?

</div>
<table class="role-features">
<caption>Characteristics:</caption>
Expand Down Expand Up @@ -4308,7 +4312,7 @@ <h4>Plain HTML or Polyfill DOM Result of the MathML Quadratic Formula</h4>
<div class="role-description">
<p>A <rref>menuitem</rref> with a checkable state whose possible <span>values</span> are <code>true</code>, <code>false</code>, or <code>mixed</code>.</p>
<p>The <sref>aria-checked</sref> <a>attribute</a> of a <code>menuitemcheckbox</code> indicates whether the menu item is checked (<code>true</code>), unchecked (<code>false</code>), or represents a sub-level menu of other menu items that have a mixture of checked and unchecked values (<code>mixed</code>).</p>
<p>Authors MUST ensure that menu item checkboxes are <a>owned</a> by an element with role <rref>menu</rref> or <rref>menubar</rref> in order to identify that they are related widgets. Authors MAY separate menu items into sets by use of a <rref>separator</rref> or an element with an equivalent role from the native markup language.</p>
<p>Authors MUST ensure that menu item checkboxes are <a>owned</a> by an element with role <rref>group</rref>, <rref>menu</rref> or <rref>menubar</rref> in order to identify that they are related widgets. Authors MAY separate menu items into sets by use of a <rref>separator</rref> or an element with an equivalent role from the native markup language.</p>
</div>
<table class="role-features">
<caption>Characteristics:</caption>
Expand Down Expand Up @@ -4348,6 +4352,7 @@ <h4>Plain HTML or Polyfill DOM Result of the MathML Quadratic Formula</h4>
<th class="role-scope-head" scope="row">Required Context Role:</th>
<td class="role-scope">
<ul>
<li><rref>group</rref></li>
<li><rref>menu</rref></li>
<li><rref>menubar</rref></li>
</ul>
Expand Down