[whatwg] HTML 5 Script Tag
Tab Atkins Jr.
jackalmage at gmail.com
Fri Aug 14 08:59:21 PDT 2009
On Fri, Aug 14, 2009 at 10:48 AM, Cready, James<jcready at rtcrm.com> wrote:
>> No elements in text/html can be self-closing.
> Except of course for the following: <area> <base> <br> <col> <command>
> <embed> <hr> <input> <img> <link> <meta> <param> and <source>
> And these "obsolete elements" still supported by legacy UAs: <basefont>
> <bgsound> and <wbr>
None of those are self-closing in the HTML syntax; they're all null
elements. They *have* no end tag, never did, and have no need to
close anything at all.
>> I agree that some people expect this. I don't think that making it work
>> with exactly one element and dependent on the presence of an attribute is
>> the way to improve this situation, however.
> It already works this way. The browser ignores everything inside the
> <script> tag the moment you put these three letters inside the brackets:
And that wouldn't be the situation settled on if the <script> element
were being added today. But it is how it is, and you can't change
More information about the whatwg