<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>24802</bug_id>
          
          <creation_ts>2014-02-25 15:11:56 +0000</creation_ts>
          <short_desc>Children elements of &lt;option&gt;</short_desc>
          <delta_ts>2014-02-25 16:39:51 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML Checker</product>
          <component>General</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrea Rendine">master.skywalker.88</reporter>
          <assigned_to name="Michael[tm] Smith">mike+validator</assigned_to>
          <cc>master.skywalker.88</cc>
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>101335</commentid>
    <comment_count>0</comment_count>
    <who name="Andrea Rendine">master.skywalker.88</who>
    <bug_when>2014-02-25 15:11:56 +0000</bug_when>
    <thetext>The &lt;option&gt; tag has &quot;text&quot; as content model, so it cannot contain any tag. Using a syntax like &lt;option&gt;text &lt;b&gt;node&lt;/b&gt;&lt;/option&gt; is invalid in both HTML and XHTML. But the error reports are different.

Error: Stray start tag b. [...]
Error: Stray end tag b. [...]
(HTML)

XHTML element b not allowed as child of XHTML element option in this context. (Suppressing further errors from this subtree.) [...]
Contexts in which element b may be used:
Where phrasing content is expected.
Content model for element option:
Text.

Actually the error is the same. &lt;option&gt; is one of the few tags with content model:text flagging children elements as invalid (it doesn&apos;t happen in &lt;title&gt; and &lt;textarea&gt;), but I think the report should be clear.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>