Re: [whatwg] Proposal: defining script as <link rel="script" href="actualwaytoscript">

On Thu, Jun 26, 2014 at 11:06 AM, Tim Marinin <marinintim@gmail.com> wrote:
> Most often use for tag <script> is to include external script through
> <script src="somecdn.example/jquery.js">, or alike. May be we could add
> rel="script" to <link> tag with same behaviour as <script> with src.
>
> It's similiar to stylesheets: we can link external stylesheets via <link>
> and include CSS directly on page with <style> tag.

This has obvious XSS drawbacks (similar to <link rel=import>). What
are the upsides?


-- 
http://annevankesteren.nl/

Received on Thursday, 26 June 2014 09:12:38 UTC