|
|
|
|
|
|
|
|
<dd><code title=attr-menu-label><a href="#label1">label</a></code> |
|
|
|
|
|
<dd><code title=attr-menu-autosubmit><a |
|
|
href="#autosubmit">autosubmit</a></code> |
|
|
|
|
|
<dt>DOM interface: |
|
|
|
|
|
<dd> |
|
|
<pre |
|
|
class=idl>interface <dfn id=htmlmenuelement>HTMLMenuElement</dfn> : <a href="#htmlelement">HTMLElement</a> { |
|
|
attribute DOMString <a href="#type18" title=dom-menu-type>type</a>; |
|
|
attribute DOMString <a href="#label2" title=dom-menu-label>label</a>; |
|
|
attribute boolean <a href="#autosubmit0" title=dom-menu-autosubmit>autosubmit</a>; |
|
|
};</pre> |
|
|
</dl> |
|
|
|
|
|
|
|
another menu would use the nested menu's <code title=attr-menu-label><a |
|
|
href="#label1">label</a></code> attribute for the submenu's menu label. |
|
|
|
|
|
<p>The <dfn id=autosubmit |
|
|
title=attr-menu-autosubmit><code>autosubmit</code></dfn> attribute is a <a |
|
|
href="#boolean0">boolean attribute</a> that, if present, indicates that |
|
|
selections made to form controls in this menu are to result in the |
|
|
control's form being immediately submitted. |
|
|
|
|
|
<p>If a <code title=event-change>change</code> event bubbles through a |
|
|
<code><a href="#menu">menu</a></code> element, then, in addition to any |
|
|
other default action that that event might have, the UA must act as if the |
|
|
following was an additional default action for that event: if (when it |
|
|
comes time to execute the default action) the <code><a |
|
|
href="#menu">menu</a></code> element has an <code |
|
|
title=attr-menu-autosubmit><a href="#autosubmit">autosubmit</a></code> |
|
|
attribute, and the target of the event is an <code>input</code> element, |
|
|
and that element has a <code title=attr-input-type>type</code> attribute |
|
|
whose value is either <code title="">radio</code> or <code |
|
|
title="">checkbox</code>, and the <code>input</code> element in question |
|
|
has a non-null <code title=dom-input-form>form</code> DOM attribute, then |
|
|
the UA must invoke the <code title=dom-form-submit>submit()</code> method |
|
|
of the <code>form</code> element indicated by that DOM attribute. |
|
|
|
|
|
<p>The <dfn id=type18 title=dom-menu-type><code>type</code></dfn>, <dfn |
|
|
id=label2 title=dom-menu-label><code>label</code></dfn>, and <dfn |
|
|
id=autosubmit0 title=dom-menu-autosubmit><code>autosubmit</code></dfn> DOM |
|
|
attributes must <a href="#reflect">reflect</a> the content attributes of |
|
|
the same name. |
|
|
<p>The <dfn id=type18 title=dom-menu-type><code>type</code></dfn> and <dfn |
|
|
id=label2 title=dom-menu-label><code>label</code></dfn> DOM attributes |
|
|
must <a href="#reflect">reflect</a> the content attributes of the same |
|
|
name. |
|
|
|
|
|
<h5 id=menus-intro><span class=secno>4.11.5.1. </span>Introduction</h5> |
|
|
|
|
|
|
|
</form></pre> |
|
|
|
|
|
<form ...> |
|
|
<menu type="toolbar" autosubmit> |
|
|
<menu type="toolbar"> |
|
|
<li> |
|
|
<select name="foo" onchange="form.submit()"> |
|
|
... |
|
|
|
|
</form> |
|
|
|
|
|
<form ...> |
|
|
<menu type="toolbar" autosubmit> |
|
|
<menu type="toolbar"> |
|
|
<menu label="Foo"> |
|
|
<select name="foo" onchange="form.submit()"> |
|
|
... |