[whatwg] HTML 5 Script Tag

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

--
Greg Houston
User Interface Design and Frontend Development
www.greghoustondesign.com

Received on Thursday, 6 August 2009 13:56:40 UTC