Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #34803

Re: The less sign "<" in script elements

From Jon Ribbens <jon+usenet@unequivocal.eu>
Newsgroups comp.lang.javascript
Subject Re: The less sign "<" in script elements
Date 2018-03-20 13:21 +0000
Organization A noiseless patient Spider
Message-ID <slrnpb22mf.2gf.jon+usenet@sable.unequivocal.eu> (permalink)
References (4 earlier) <3165380.iIbC2pHGDl@PointedEars.de> <slrnpb0hk1.2gf.jon+usenet@sable.unequivocal.eu> <8233097.CDJkKcVGEf@PointedEars.de> <slrnpb1sio.2gf.jon+usenet@sable.unequivocal.eu> <3095067.QJadu78ljV@PointedEars.de>

Show all headers | View raw


On 2018-03-20, Thomas 'PointedEars' Lahn <PointedEars@web.de> wrote:
> Jon Ribbens wrote:
>> On 2018-03-19, Thomas 'PointedEars' Lahn <PointedEars@web.de> wrote:
>>> Jon Ribbens wrote:
>>>> Perhaps you could progress beyond just spouting nonsense then,
>>>> and make some specific criticisms or corrections.
>>> I did.  Had you not full-quoted what I have replied to you, and had
>>> you read what I have posted in the other subthread, you would have
>>> realized that.
>> 
>> I already read that post and there is nothing in it that is a specific
>> criticism of or correction to my post. There's barely anything in it
>> that disagrees with what I said, except that you clearly have not read
>> either the HTML 3.2 or HTML 4.01 specifications.
>
> So much for “specific creticism”.

You said:

> However, in HTML 3.2 to 4.01, because of limitations of the SGML-        
> based DTD, the CDATA content of a SCRIPT element was defined to end
> at the first occurrence of “</” (End-Tag Open delimiter, ETAGO).

In fact the HTML 3.2 specification says 'ETAGO ("</") delimiters
followed immediately by a name character [a-zA-Z]', and the HTML 4.01
specification says 'ETAGO ("</") delimiter followed by a name start
character ([a-zA-Z])'.

You also said:

> The misconception that it would be necessary to hide the offending
> content from *seemingly* bad validators and editors (which were
> actually *working*) caused the misconception in many people that in
> XHTML (and in HTML for *actually* bad validators and editors) it
> would a good idea to comment out the entire script contents: 
> 
>    <script …><!-- … --></script> 

This was nothing to do with "seemingly bad validators and editors",
it was to do with backwards-compatibility with browsers and tools
that pre-dated the <script> tag and therefore could not know that
its contents should be parsed as CDATA.

It is now your turn to provide specific criticism of my earlier post.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: The less sign "<" in script elements Jon Ribbens <jon+usenet@unequivocal.eu> - 2018-03-18 22:14 +0000
  Re: The less sign "<" in script elements Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-03-19 03:47 +0100
    Re: The less sign "<" in script elements Jon Ribbens <jon+usenet@unequivocal.eu> - 2018-03-19 13:47 +0000
      Re: The less sign "<" in script elements Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-03-19 21:37 +0100
        Re: The less sign "<" in script elements Jon Ribbens <jon+usenet@unequivocal.eu> - 2018-03-19 23:23 +0000
          Re: The less sign "<" in script elements Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-03-20 00:41 +0100
            Re: The less sign "<" in script elements Jon Ribbens <jon+usenet@unequivocal.eu> - 2018-03-20 11:36 +0000
              Re: The less sign "<" in script elements Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-03-20 13:56 +0100
                Re: The less sign "<" in script elements Jon Ribbens <jon+usenet@unequivocal.eu> - 2018-03-20 13:21 +0000
                Re: The less sign "<" in script elements Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-03-20 16:45 +0100
                Re: The less sign "<" in script elements Jon Ribbens <jon+usenet@unequivocal.eu> - 2018-03-20 16:05 +0000
                Re: The less sign "<" in script elements Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-03-20 18:09 +0100

csiph-web