NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 307 - Make the parser handle <option> and <optgroup> more usefully in the 'in body' state.
Make the parser handle <option> and <optgroup> more usefully in the 'in body'...
Status: NEW
Product: Validator.nu
Classification: Unclassified
Component: HTML parser
HEAD
All All
: P2 normal
Assigned To: Nobody
http://svn.whatwg.org/webapps/source?...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-09-25 11:51 CEST by Henri Sivonen
Modified: 2009-11-23 17:17 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henri Sivonen 2008-09-25 11:51:23 CEST
Index: source
===================================================================
--- source	(revision 2127)
+++ source	(revision 2128)
@@ -44495,19 +44495,18 @@
    <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>,
@@ -48321,6 +48320,21 @@
 
    </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>