Skip to content
Permalink
Browse files

[e] (0) Add some explanatory notes to <optgroup>

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

git-svn-id: http://svn.whatwg.org/webapps@8611 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed May 7, 2014
1 parent 1dbd5ea commit b5ea59eb76b1b347d3605457e7f42775adc25aa0
Showing with 14 additions and 4 deletions.
  1. +5 −1 complete.html
  2. +5 −1 index
  3. +4 −2 source
attribute DOMString <a href=#dom-optgroup-label title=dom-optgroup-label>label</a>;
};</pre>
</dd>
</dl><!--TOPIC:HTML--><!-- v2: make optgroups selectable if they have a value. --><p>The <code><a href=#the-optgroup-element>optgroup</a></code> element <a href=#represents>represents</a> a group of <code><a href=#the-option-element>option</a></code>
</dl><!--TOPIC:HTML--><p>The <code><a href=#the-optgroup-element>optgroup</a></code> element <a href=#represents>represents</a> a group of <code><a href=#the-option-element>option</a></code>
elements with a common label.</p>

<p>The element's group of <code><a href=#the-option-element>option</a></code> elements consists of the <code><a href=#the-option-element>option</a></code>

</div>

<p class=note>There is no way to select an <code><a href=#the-optgroup-element>optgroup</a></code> element. Only
<code><a href=#the-option-element>option</a></code> elements can be selected. An <code><a href=#the-optgroup-element>optgroup</a></code> element merely provides a
label for a group of <code><a href=#the-option-element>option</a></code> elements.</p>

<div class=example>

<p>The following snippet shows how a set of lessons from three courses could be offered in a
6 index
attribute DOMString <a href=#dom-optgroup-label title=dom-optgroup-label>label</a>;
};</pre>
</dd>
</dl><!--TOPIC:HTML--><!-- v2: make optgroups selectable if they have a value. --><p>The <code><a href=#the-optgroup-element>optgroup</a></code> element <a href=#represents>represents</a> a group of <code><a href=#the-option-element>option</a></code>
</dl><!--TOPIC:HTML--><p>The <code><a href=#the-optgroup-element>optgroup</a></code> element <a href=#represents>represents</a> a group of <code><a href=#the-option-element>option</a></code>
elements with a common label.</p>

<p>The element's group of <code><a href=#the-option-element>option</a></code> elements consists of the <code><a href=#the-option-element>option</a></code>

</div>

<p class=note>There is no way to select an <code><a href=#the-optgroup-element>optgroup</a></code> element. Only
<code><a href=#the-option-element>option</a></code> elements can be selected. An <code><a href=#the-optgroup-element>optgroup</a></code> element merely provides a
label for a group of <code><a href=#the-option-element>option</a></code> elements.</p>

<div class=example>

<p>The following snippet shows how a set of lessons from three courses could be offered in a
6 source
</dd>
</dl><!--TOPIC:HTML-->

<!-- v2: make optgroups selectable if they have a value. -->

<p>The <code>optgroup</code> element <span>represents</span> a group of <code>option</code>
elements with a common label.</p>


</div>

<p class="note">There is no way to select an <code>optgroup</code> element. Only
<code>option</code> elements can be selected. An <code>optgroup</code> element merely provides a
label for a group of <code>option</code> elements.</p>

<div class="example">

<p>The following snippet shows how a set of lessons from three courses could be offered in a

0 comments on commit b5ea59e

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