W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2009

[whatwg] HTML 5 Script Tag

From: Greg Houston <gregory.houston@gmail.com>
Date: Thu, 6 Aug 2009 15:56:40 -0500
Message-ID: <29ae901a0908061356q1cb153bv1e38a5a36ac6b435@mail.gmail.com>
On Thu, Aug 6, 2009 at 3:36 PM, Cready, James<jcready at rtcrm.com> wrote:
> Is there any good reason why a <script> tag with the src attribute specified
> can?t be self-closing?
> I feel like, if you?re including an external JS file, the syntax should look
> more like the <link> tag used to include CSS files or even the <img> tag
> with it?s src attribute.

This makes sense to me as well. Last week a user of my framework
posted to the forums asking for help. The JavaScript was not loading,
and it turned out he was trying to self-close the script tags in the
header. So for at least some percentage of people the intuited
expectation is that the script tag can be self-closing like the link

Greg Houston
User Interface Design and Frontend Development
Received on Thursday, 6 August 2009 13:56:40 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:15 UTC