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 20175 - Lacks means to sensibly manipulate sources
Summary: Lacks means to sensibly manipulate sources
Status: RESOLVED NEEDSINFO
Alias: None
Product: HTML WG
Classification: Unclassified
Component: The srcset attribute (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Edward O'Connor
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 20211 20255
  Show dependency treegraph
 
Reported: 2012-11-30 15:19 UTC by Marcos Caceres
Modified: 2013-01-29 20:13 UTC (History)
4 users (show)

See Also:


Attachments

Description Marcos Caceres 2012-11-30 15:19:18 UTC
The img@srcset solution lacks a means to programmatically interface with image resources, as well as access relevant attributes and methods that make the solution practical to work with (i.e., it shouldn't require Regex or nested loops to manipulate values).

See: https://gist.github.com/9f3ced6a91d7390b080d
Comment 1 Edward O'Connor 2013-01-29 19:25:12 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are
satisfied with this response, please change the state of this bug to CLOSED. If
you have additional information and would like the Editor to reconsider, please
reopen this bug. If you would like to escalate the issue to the full HTML
Working Group, please add the TrackerRequest keyword to this bug, and suggest
title and text for the Tracker Issue; or you may create a Tracker Issue
yourself, if you are able to do so. For more details, see this document:

   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Additional Information Needed
Change Description: No spec change.

Rationale: The linked gist certainly demonstrates that manipulating
srcset="" from JS can be awkward. I think adding a DOMTokenList-like API
to srcset="" would be reasonable if we had use cases which required
frequent manipulation of srcset="" from JS. So, to echo Ian's question
in bug 20211 comment 1, what's the use case here?