W3C home > Mailing lists > Public > www-validator-cvs@w3.org > February 2014

[Bug 24802] New: Children elements of <option>

From: <bugzilla@jessica.w3.org>
Date: Tue, 25 Feb 2014 15:11:56 +0000
To: www-validator-cvs@w3.org
Message-ID: <bug-24802-169@http.www.w3.org/Bugs/Public/>

            Bug ID: 24802
           Summary: Children elements of <option>
           Product: Nu Markup Checker
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: General
          Assignee: mike+validator@w3.org
          Reporter: master.skywalker.88@gmail.com
        QA Contact: www-validator-cvs@w3.org

The <option> tag has "text" as content model, so it cannot contain any tag.
Using a syntax like <option>text <b>node</b></option> is invalid in both HTML
and XHTML. But the error reports are different.

Error: Stray start tag b. [...]
Error: Stray end tag b. [...]

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:

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

You are receiving this mail because:
You are the QA Contact for the bug.
Received on Tuesday, 25 February 2014 15:11:58 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:56 UTC