[whatwg] Re: rel="script"

Ian Hickson ian at hixie.ch
Sun Jul 31 09:13:03 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="">?

> 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 appears[4] that IE6, Deer Park Alpha 2, and Opera 8.01 doesn't support:
> |<link rel="script" href="script.js">

They do support <script src="">...

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