- From: Jirka Kosek <jirka@kosek.cz>
- Date: Thu, 14 Nov 2013 03:17:57 +0100
- To: Silvia Pfeiffer <silviapfeiffer1@gmail.com>
- Cc: Markus Ernst <derernst@gmx.ch>, Ryosuke Niwa <rniwa@apple.com>, whatwg <whatwg@lists.whatwg.org>, Adam Barth <w3c@adambarth.com>, Christian Biesinger <cbiesinger@google.com>, "Jukka K. Korpela" <jkorpela@cs.tut.fi>, Markus Lanthaler <markus.lanthaler@gmx.net>
On 13.11.2013 13:48, Silvia Pfeiffer wrote:
>>> <img class="artdirected" src="foo.jpg" src-small="foo-small.jpg"
>>> src-medium="foo-medium.jpg" src-big="foo-big.jpg">
>>
>> Do you expect that there will be just predefined set of src-* attributes
>> or user can define as many of them as he/she wants and use arbitrary
>> identifier after src-?
>>
>> If the later is one, then validation and content completion in HTML
>> source editors will be nightmare.
>
> No different to data-* .
Not completely. In practice you don't use completely arbitrary data-*
attributes just few of them needed by JS library you use on the page. So
you know which JS libraries are imported you can know which data-*
attributes could be there.
Jirka
--
------------------------------------------------------------------
Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz
------------------------------------------------------------------
Professional XML consulting and training services
DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 rep.
------------------------------------------------------------------
Bringing you XML Prague conference http://xmlprague.cz
------------------------------------------------------------------
Received on Thursday, 14 November 2013 02:18:33 UTC