[whatwg] The src-N proposal
yoav at yoav.ws
Mon Nov 18 12:47:01 PST 2013
On Mon, Nov 18, 2013 at 9:40 PM, Tab Atkins Jr. <jackalmage at gmail.com>wrote:
> On Mon, Nov 18, 2013 at 12:32 PM, Yoav Weiss <yoav at yoav.ws> wrote:
> > On Mon, Nov 18, 2013 at 8:58 PM, Jonas Sicking <jonas at sicking.cc> wrote:
> >> On Mon, Nov 18, 2013 at 2:40 AM, James Graham <james at hoppipolla.co.uk>
> >> wrote:
> >> > This ugliness creates real issues e.g. if I have src-1, src-2 [...]
> and I
> >> > decide I want a rule that is consulted between src-1 and src-2, I
> need to
> >> > rewrite all my attribute names. Whilst this might produce a pleasant
> >> rush of
> >> > nostalgia for children of the 80s brought up on 8-bit Basic, for
> >> > else it seems like an error-prone drag.
> >> So all we need to do is to define that you don't have to use a
> >> continuous numbered set. I.e. skipping numbers would be allowed.
> >> So people can do
> >> <img src-10="..." src-20="...">
> >> Then if you need to insert a attribute, you simply do
> >> <img src-10="..." src-15="..." src-20="...">
> > That is actually already part of the spec (implicitly), for that exact
> > reason.
> Well, not for that reason, but it does allow that usage if you want.
My bad. Thought that was the reason you allowed it.
> (I did it because it's an authoring hazard if deleting an attribute
> means all src-Ns with higher numbers get ignored.)
More information about the whatwg