[BUG] Squeak3.1beta Scamper error opening SqueakLand.org

Ned Konz ned at bike-nomad.com
Mon Oct 22 17:17:16 UTC 2001


On Monday 22 October 2001 09:55 am, Michael Rueger wrote:
> Lex Spoon wrote:
> > The Javascript on this page contains a comment terminator:
> >
> >         document.write("//--> </STYLE>");
> >
> > I'm a little impressed, by the way, that whatever editor the guys are
> > using didn't warn against this -- isn't a major point for an HTML editor
> > to get things right that you don't want to have to worry about?
>
> I'm not quite sure about if and where this is acutally specified in the
> HTML docs, but I'm assuming that an HTML parser should just ignore a
> Javascript section.
> That would be everything between <SCRIPT> and </SCRIPT>, not the
> comments inside of it.
>
> But nevertheless, I'll change that in the next round of updates to
> Squeakland.

So what happens if your Javascript happens to have the string "</script>" 
inside it?

I think the Squeakland HTML was not legal, because it had the HTML 
end-of-comment string inside the script. After all, you can't expect an 
arbitrary browser to understand and parse everything inside an arbitrary 
script language block (which should look like a valid HTML comment), no 
matter whether _some_ browsers seem to handle it OK.

-- 
Ned Konz
currently: Stanwood, WA
email:     ned at bike-nomad.com
homepage:  http://bike-nomad.com




More information about the Squeak-dev mailing list