This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 18616 - Content model of <datalist> element caused contradiction. This <datalist> element's content model says ----Quote---- > Either: phrasing content. > Or: Zero or more option elements. ---- So if I read it correctly, the element cannot contain BOTH phrasing c
Summary: Content model of <datalist> element caused contradiction. This <datalist> ele...
Status: RESOLVED WORKSFORME
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-18 08:21 UTC by contributor
Modified: 2012-10-19 21:18 UTC (History)
2 users (show)

See Also:


Attachments

Description contributor 2012-08-18 08:21:07 UTC
Specification: 
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top

Comment:
Content model of <datalist> element caused contradiction.

This <datalist> element's content model says
----Quote----
> Either: phrasing content.
> Or: Zero or more option elements.
----
So if I read it correctly, the element cannot contain BOTH phrasing content 
and <option> elements.

And this will contradict the statement saying that it can be intermixed.
----Quote----
> The contents of the element represents fallback content for legacy user 
> agents, intermixed with option elements that represent the predefined 
> options.
----

Maybe the content model should be changed to something like this:

  Either: phrasing content.
  Or: Zero or more option elements.
  Or both.


Posted from: 114.42.19.97
User agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.79 Safari/537.1
Comment 1 Ian 'Hixie' Hickson 2012-10-19 21:18:43 UTC
It can be mixed if there is a descendant element that allows <option>, which is what <select> does.