[whatwg] The src-N proposal

Jonas Sicking jonas at sicking.cc
Mon Nov 18 11:58:34 PST 2013

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="...">

We could even ask tool developers to introduce features that
automatically renumbers an existing element so that all attributes are
10 numbers apart. The feature should obviously be called TFC3.

And yes, I'm joking :-)

/ Jonas

More information about the whatwg mailing list