Bizarre <script> tag spec
Sun, 13 Jul 1997 23:23:30 -0700

Date: Sun, 13 Jul 1997 23:23:30 -0700
Message-Id: <199707140623.XAA04525@checfs1>
Subject: Bizarre <script> tag spec

The <script> element content is defined to end:

    > HTML parsers must be able to recognize script data as beginning
    > immediately after the start tag and ending as soon as the ETAGO
    > ("</") delimiters are followed by a name character ([a-zA-Z]).
    > The script data does not necessarily end with the </SCRIPT> end
    > tag, but is terminated by any "</" followed by a name character.

thus, this is illegal:

    >      <SCRIPT type="text/javascript">
    >        document.write ("<EM>This won't work</EM>")
    >      </SCRIPT>

    > A conforming parser must treat the "</EM>" data as the end of
    > script data, which is clearly not what the author intended.

Quite frankly, this seems to be exceptionally dumb. Was there a
sensible reason for this decision?

-- John W Pierce, Chem & Biochem, UC San Diego