W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2005

[whatwg] Re: rel="script"

From: Ian Hickson <ian@hixie.ch>
Date: Sun, 31 Jul 2005 18:55:02 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0507311854070.31400@dhalsim.dreamhost.com>
On Sun, 31 Jul 2005, Simon Pieters wrote:
> > >
> > > I was wondering about rel="script". It could work like 
> > > rel="stylesheet", and we could possibly introduce rel="alternate 
> > > script" but I'm not sure how that would work.
> > 
> > What would be the advantage over <script src="">?
> 
> What's the advantage of rel="stylesheet" over <style>@import 
> "";</style>?

You can do alternate stylesheets with <link> but not with <style>.


> > > A use case could be for javascript links, for instance:
> > >
> > > |<a rel="script" href="javascript:alert('pass')">foo</a>
> > 
> > What's the advantage? It's obvious it is a javascript link, because of 
> > the scheme used, no?
> 
> It's just metadata. I don't know if there's a real advantage though.

I'm reluctant to add stuff to the spec that doesn't have a clear 
advantage.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Sunday, 31 July 2005 11:55:02 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:42 UTC