Skip to content

Commit

Permalink
[a] (0) Mention that you can omit the </option> in <option><optgroup>…
Browse files Browse the repository at this point in the history
… too. Also, make the text support <optgroup> outside of <select>, but comment it out since it's irrelevant for now.

git-svn-id: http://svn.whatwg.org/webapps@2129 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 29, 2008
1 parent 6f63136 commit eed4417
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 19 deletions.
42 changes: 31 additions & 11 deletions index
Expand Up @@ -45803,18 +45803,34 @@ interface <dfn id=messagechannel>MessageChannel</dfn> {
href="#rp">rp</a></code> element is immediately followed by an <code><a
href="#rt">rt</a></code> or <code><a href="#rp">rp</a></code> element, or
if there is no more content in the parent element.</p>
<!-- </optgroup> -->
<!-- </optgroup> (the text assumes <optgroup> can only be inside a
<select>; commented out text below can handle the non-<select> case
if we ever allow it) -->

<p>An <code>optgroup</code> element's <span title=syntax-end-tag>end
tag</span> may be omitted if the <code>optgroup</code> element is
immediately followed by another <code>optgroup</code> element, or if there
is no more content in the parent element.</p>
tag</span> may be omitted if the <code>optgroup</code> element
<!--has an ancestor
<code>select</code> element and--> is immediately
followed by another <code>optgroup</code> element, or if
<!--all of the elements
that are ancestors of the <code>optgroup</code> element, up to and
including the first ancestor element that is not an
<code>optgroup</code> element, have no more content-->
there is no more content in the parent element.</p>
<!-- so e.g. the max number of </optgroup>s are omitted here:
<select><optgroup></select>
<p id=x><optgroup></optgroup>x</p>
<p id=x><optgroup><optgroup></optgroup></optgroup>x</p>
<p><optgroup id=x><optgroup></optgroup>x</p>
<p><optgroup><optgroup id=x>x</p>
-->
<!-- </option> -->

<p>An <code>option</code> element's <span title=syntax-end-tag>end
tag</span> may be omitted if the <code>option</code> element is
immediately followed by another <code>option</code> element, or if there
is no more content in the parent element.</p>
immediately followed by another <code>option</code> element, or if it is
immediately followed by an <code>optgroup</code> element, or if there is
no more content in the parent element.</p>
<!-- <colgroup> -->

<p>A <code><a href="#colgroup">colgroup</a></code> element's <span
Expand Down Expand Up @@ -45894,11 +45910,15 @@ interface <dfn id=messagechannel>MessageChannel</dfn> {
<p>For historical reasons, certain elements have extra restrictions beyond
even the restrictions given by their content model.

<p>An <code>optgroup</code> element must not contain <code>optgroup</code>
elements, even though these elements are technically allowed to be nested
according to the content models described in this specification. (If an
<code>optgroup</code> element is put inside another in the markup, it will
in fact imply an <code>optgroup</code> end tag before it.)
<p>An <code>optgroup</code> element <!--that is a descendant of a
<code>select</code> element-->
must not contain <code>optgroup</code> elements, even though these
elements are technically allowed to be nested according to the content
models described in this specification. (If an <code>optgroup</code>
element is put inside another <!--<code>optgroup</code> element
inside a <code>select</code> element-->
in the markup, it will in fact imply an <code>optgroup</code> end tag
before it.)

<p>A <code><a href="#table">table</a></code> element must not contain
<code><a href="#tr">tr</a></code> elements, even though these elements are
Expand Down
32 changes: 24 additions & 8 deletions source
Expand Up @@ -43227,18 +43227,32 @@ interface <dfn>MessageChannel</dfn> {
immediately followed by an <code>rt</code> or <code>rp</code>
element, or if there is no more content in the parent element.</p>

<!-- </optgroup> -->
<!-- </optgroup> (the text assumes <optgroup> can only be inside a
<select>; commented out text below can handle the non-<select> case
if we ever allow it) -->
<p>An <code>optgroup</code> element's <span
title="syntax-end-tag">end tag</span> may be omitted if the
<code>optgroup</code> element is immediately followed by another
<code>optgroup</code> element, or if there is no more content in the
parent element.</p>
<code>optgroup</code> element <!--has an ancestor
<code>select</code> element and--> is immediately followed by
another <code>optgroup</code> element, or if <!--all of the elements
that are ancestors of the <code>optgroup</code> element, up to and
including the first ancestor element that is not an
<code>optgroup</code> element, have no more content--> there is no
more content in the parent element.</p>
<!-- so e.g. the max number of </optgroup>s are omitted here:
<select><optgroup></select>
<p id=x><optgroup></optgroup>x</p>
<p id=x><optgroup><optgroup></optgroup></optgroup>x</p>
<p><optgroup id=x><optgroup></optgroup>x</p>
<p><optgroup><optgroup id=x>x</p>
-->

<!-- </option> -->
<p>An <code>option</code> element's <span title="syntax-end-tag">end
tag</span> may be omitted if the <code>option</code> element is
immediately followed by another <code>option</code> element, or if
there is no more content in the parent element.</p>
it is immediately followed by an <code>optgroup</code> element, or
if there is no more content in the parent element.</p>

<!-- <colgroup> -->
<p>A <code>colgroup</code> element's <span
Expand Down Expand Up @@ -43309,12 +43323,14 @@ interface <dfn>MessageChannel</dfn> {
<p>For historical reasons, certain elements have extra restrictions
beyond even the restrictions given by their content model.</p>

<p>An <code>optgroup</code> element must not contain
<p>An <code>optgroup</code> element <!--that is a descendant of a
<code>select</code> element--> must not contain
<code>optgroup</code> elements, even though these elements are
technically allowed to be nested according to the content models
described in this specification. (If an <code>optgroup</code>
element is put inside another in the markup, it will in fact imply
an <code>optgroup</code> end tag before it.)</p>
element is put inside another <!--<code>optgroup</code> element
inside a <code>select</code> element--> in the markup, it will in
fact imply an <code>optgroup</code> end tag before it.)</p>

<p>A <code>table</code> element must not contain <code>tr</code>
elements, even though these elements are technically allowed inside
Expand Down

0 comments on commit eed4417

Please sign in to comment.