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 26176 - <img> change media_query_list to <media-query-list> & change prose of definition
Summary: <img> change media_query_list to <media-query-list> & change prose of definition
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: Unsorted
Assignee: Simon Pieters
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 26174
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-23 02:24 UTC by Michael[tm] Smith
Modified: 2016-01-26 13:20 UTC (History)
3 users (show)

See Also:


Attachments

Description Michael[tm] Smith 2014-06-23 02:24:42 UTC
The current "Media Queries Level 4" spec does not have a "media_query_list" production; instead it has a "<media-query-list>" production.

Also the HTML spec says, "A string is a valid media query if it matches the media_query_list production of the Media Queries specification." which is kind of confusing/misleading, since what it allows  (I think) is actually a list of media queries, not just a single media query.

So I suggest the spec instead define this requirement with the prose "...is a valid *media query list* if it matches..." and with the text of the hyperlinked references to that definition (e.g., for the "media" attribute) also changed to read "valid media query list".

I base the all the above on assuming that the spec actually intends for a media query list to be allowed throughout, not just a single media query. But if that's wrong and a single media query is what in fact should be allowed, then the definition should be changed to "media query" and the MQ spec reference should be to the <media-query> production.
Comment 1 Ian 'Hixie' Hickson 2014-08-28 23:59:00 UTC
Fixed for HTML, but this also requires updates in the <img> section.
Comment 2 contributor 2014-08-28 23:59:15 UTC
Checked in as WHATWG revision r8732.
Check-in comment: Sync with MQ4
http://html5.org/tools/web-apps-tracker?from=8731&to=8732
Comment 3 Domenic Denicola 2016-01-24 05:48:33 UTC
Simon, can you check if this still needs fixes to the image section?