[whatwg] Re: rel="script"

> > 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>?

> > 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.

Regards,
Simon Pieters

Received on Sunday, 31 July 2005 11:13:15 UTC