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 26196 - disallow CSS comments in the "sizes" attribute
Summary: disallow CSS comments in the "sizes" attribute
Status: RESOLVED WONTFIX
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:
Blocks:
 
Reported: 2014-06-25 13:45 UTC by Michael[tm] Smith
Modified: 2015-09-16 12:44 UTC (History)
2 users (show)

See Also:


Attachments

Description Michael[tm] Smith 2014-06-25 13:45:00 UTC
Please consider making the spec state that the value of the "sizes" attribute must not contain CSS comments. (In other words, that authors must not use CSS comments in anywhere in the the "sizes" attribute.)

I recognize there are some hypothetical use cases for allowing CSS comments in "sizes" but I've yet to see any actual examples of anybody putting comments in there. 

So while UAs should still need to support parsing of "media" values that contain comments, conformance checkers would for now report the comments as invalid.

Then if we eventually end up finding that actual web authors are finding it unreasonable that CSS comments in sizes are not allowed, we can drop the requirement from the spec. But I'd suggest we start by trying out the requirement and seeing what happens.
Comment 1 Michael[tm] Smith 2014-09-29 23:39:33 UTC
Given the resolution on bug 26195, feel free to wontfix this one as well