Skip to content

Commit

Permalink
[ct] (0) Make the parser handle <option> and <optgroup> more usefully…
Browse files Browse the repository at this point in the history
… in the 'in body' state.

git-svn-id: http://svn.whatwg.org/webapps@2128 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 29, 2008
1 parent 4068082 commit 6f63136
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 21 deletions.
29 changes: 21 additions & 8 deletions index
Expand Up @@ -47110,20 +47110,20 @@ interface <dfn id=messagechannel>MessageChannel</dfn> {
href="#h5">h5</a></code>, <code><a href="#h6">h6</a></code>, <code><a
href="#head">head</a></code>, <code><a href="#header">header</a></code>,
<code><a href="#hr">hr</a></code>, <code><a
href="#iframe">iframe</a></code>, <!--
<code>image</code>, (commented out because this isn't an element
that can end up on the stack, so it doesn't matter) -->
href="#iframe">iframe</a></code>, <!-- <code>image</code>,
(commented out because this isn't an element that can end up on the
stack, so it doesn't matter) -->
<code><a href="#img">img</a></code>, <code>input</code>,
<code>isindex</code>, <code><a href="#li">li</a></code>, <code><a
href="#link">link</a></code>, <code>listing</code>, <code><a
href="#menu">menu</a></code>, <code><a href="#meta0">meta</a></code>,
<code><a href="#nav">nav</a></code>, <code>noembed</code>,
<code>noframes</code>, <code><a href="#noscript">noscript</a></code>,
<code><a href="#ol">ol</a></code>, <code>optgroup</code>,
<code>option</code>, <code><a href="#p">p</a></code>, <code><a
href="#param">param</a></code>, <code>plaintext</code>, <code><a
href="#pre">pre</a></code>, <code><a href="#script1">script</a></code>,
<code><a href="#section">section</a></code>, <code>select</code>,
<code><a href="#ol">ol</a></code>, <code><a href="#p">p</a></code>,
<code><a href="#param">param</a></code>, <code>plaintext</code>,
<code><a href="#pre">pre</a></code>, <code><a
href="#script1">script</a></code>, <code><a
href="#section">section</a></code>, <code>select</code>,
<code>spacer</code>, <code><a href="#style1">style</a></code>, <code><a
href="#tbody">tbody</a></code>, <code>textarea</code>, <code><a
href="#tfoot0">tfoot</a></code>, <code><a
Expand Down Expand Up @@ -51404,6 +51404,19 @@ interface <dfn id=messagechannel>MessageChannel</dfn> {
in table</a>". Otherwise, switch the <span>insertion mode</span> to "<a
href="#in-select" title="insertion mode: in select">in select</a>".</p>

<dt>A start tag whose tag name is one of: "optgroup", "option"

<dd>
<p>If the <a href="#stack">stack of open elements</a> <a href="#have-an"
title="has an element in scope">has an <code>option</code> element in
scope</a>, then act as if an end tag with the tag name "option" had been
seen.</p>

<p><a href="#reconstruct">Reconstruct the active formatting elements</a>,
if any.</p>

<p><a href="#insert0">Insert an HTML element</a> for the token.</p>

<dt>A start tag whose tag name is one of: "rp", "rt"

<dd> <!-- the parsing rules for ruby really don't match IE much at all,
Expand Down
40 changes: 27 additions & 13 deletions source
Expand Up @@ -44495,19 +44495,18 @@ interface <dfn>MessageChannel</dfn> {
<code>command</code>, <code>datagrid</code>, <code>dd</code>,
<code>details</code>, <code>dialog</code>, <code>dir</code>,
<code>div</code>, <code>dl</code>, <code>dt</code>,
<code>embed</code>, <code>eventsource</code>
<code>fieldset</code>, <code>figure</code>, <code>footer</code>,
<code>form</code>, <code>frame</code>, <code>frameset</code>,
<code>h1</code>, <code>h2</code>, <code>h3</code>, <code>h4</code>,
<code>h5</code>, <code>h6</code>, <code>head</code>,
<code>header</code>, <code>hr</code>, <code>iframe</code>, <!--
<code>image</code>, (commented out because this isn't an element
that can end up on the stack, so it doesn't matter) -->
<code>img</code>, <code>input</code>, <code>isindex</code>,
<code>li</code>, <code>link</code>, <code>listing</code>,
<code>menu</code>, <code>meta</code>, <code>nav</code>,
<code>noembed</code>, <code>noframes</code>, <code>noscript</code>,
<code>ol</code>, <code>optgroup</code>, <code>option</code>,
<code>embed</code>, <code>eventsource</code> <code>fieldset</code>,
<code>figure</code>, <code>footer</code>, <code>form</code>,
<code>frame</code>, <code>frameset</code>, <code>h1</code>,
<code>h2</code>, <code>h3</code>, <code>h4</code>, <code>h5</code>,
<code>h6</code>, <code>head</code>, <code>header</code>,
<code>hr</code>, <code>iframe</code>, <!-- <code>image</code>,
(commented out because this isn't an element that can end up on the
stack, so it doesn't matter) --> <code>img</code>,
<code>input</code>, <code>isindex</code>, <code>li</code>,
<code>link</code>, <code>listing</code>, <code>menu</code>,
<code>meta</code>, <code>nav</code>, <code>noembed</code>,
<code>noframes</code>, <code>noscript</code>, <code>ol</code>,
<code>p</code>, <code>param</code>, <code>plaintext</code>,
<code>pre</code>, <code>script</code>, <code>section</code>,
<code>select</code>, <code>spacer</code>, <code>style</code>,
Expand Down Expand Up @@ -48321,6 +48320,21 @@ interface <dfn>MessageChannel</dfn> {

</dd>

<dt>A start tag whose tag name is one of: "optgroup", "option"</dt>
<dd>

<p>If the <span>stack of open elements</span> <span title="has an
element in scope">has an <code>option</code> element in
scope</span>, then act as if an end tag with the tag name "option"
had been seen.</p>

<p><span>Reconstruct the active formatting elements</span>, if
any.</p>

<p><span>Insert an HTML element</span> for the token.</p>

</dd>

<dt>A start tag whose tag name is one of: "rp", "rt"</dt>
<dd>

Expand Down

0 comments on commit 6f63136

Please sign in to comment.