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 26168 - change "token" to "descriptor" in srcset parsing algorithm
Summary: change "token" to "descriptor" in srcset parsing algorithm
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:
Blocks:
 
Reported: 2014-06-22 04:27 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-22 04:27:46 UTC
Please consider changing all instances of "token" in the srcset parsing algorithm with "descriptor".

The use of "token" in this context is slightly misleading in that it makes it sound like these are the only tokens in each srcset value or each image candidate string. But the srcset value is not really a string of simple tokens, nor is each image candidate string a string of simple tokens. Instead each image candidate string is either a URL + descriptor pair, or a URL on its own with no descriptors. And if you're going to call the subparts of the descriptors part "tokens" you could just as well call the URLs "tokens" too.

So I'd suggest getting rid of "token" altogether here, and instead just using the more specific and descriptive "descriptors"—to make it more to clear just exactly what things this part of the srcset parsing algorithm is processing.