[whatwg] Re: rel="script"

Ian Hickson ian at hixie.ch
Sun Jul 31 11:55:02 PDT 2005


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.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list