W3C home > Mailing lists > Public > www-svg@w3.org > August 2012

Re: handling XLink deprecation

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 21 Aug 2012 17:46:41 -0700
Message-ID: <CAAWBYDDgTfR7VMW42cj1AxqdRhWkKjGVjyFOsKWvkV6iYrKuzA@mail.gmail.com>
To: Cameron McCormack <cam@mcc.id.au>
Cc: SVG public list <www-svg@w3.org>
On Tue, Aug 21, 2012 at 5:44 PM, Cameron McCormack <cam@mcc.id.au> wrote:
> Tab Atkins Jr.:
>> Why differentiate between href and src here?  Is it to distinguish
>> between things that accept url() and those that just accept a URL
>> directly?
> No it's for consistency with how src="" is used in HTML, for referencing
> external documents to be rendered, versus href="" for all other types of
> links.
> But that just made me think: what about <use>?  Is that enough of a
> "reference external thing for rendering" that it should be src=""?  It can
> use URI references, though, and not just whole documents.

There's no consistency in HTML.  <script> uses src while <link> uses
href, despite scripts and stylesheets being basically the same thing.

Just make all of SVG use the same attribute.  The only reason to ever
have more than one name is if a single element needs to specify two
urls, and that kind of thing is special enough that it's okay to
special-case it.

Received on Wednesday, 22 August 2012 00:47:28 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:29 UTC