W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2014

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

From: Anne van Kesteren <annevk@annevk.nl>
Date: Thu, 26 Jun 2014 11:12:13 +0200
Message-ID: <CADnb78hObci6e+ao_MkBg9gqGV3jUh1yC6aDNQe-90FhuuYirg@mail.gmail.com>
To: Tim Marinin <marinintim@gmail.com>
Cc: WHATWG <whatwg@whatwg.org>
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?

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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:21 UTC