[whatwg] The src-N proposal
Yoav Weiss
yoav at yoav.ws
Mon Nov 18 12:32:14 PST 2013
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 everyone
> > 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.
More information about the whatwg
mailing list