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

Lex Spoon lex at cc.gatech.edu
Mon Oct 22 16:39:11 UTC 2001


The Javascript on this page contains a comment terminator:

	document.write("//--> </STYLE>");

This causes Scamper to try and interpret the Javascript that follows
this command, with bad results.

I'd like Scamper to do what the page meant, but in this case it's
tricky.  Furthermore, the obvious attempts at it offer opportunities to
misparse *correct* pages (e.g., Scamper could allow comments to nest;
but real HTML comments don't nest!)  I'll submit a patch that keeps the
formatter from crashing here, but the comment will still be ended before
the authors intended.

It would be best if the site can get fixed.  It could be done by
separating the offending string in half and then recombining it with a
string concatenation operator.


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?


-Lex




More information about the Squeak-dev mailing list