[WEB4LIB] Mozilla/Netscape 7.0 -- Students

Darryl Friesen Darryl.Friesen at usask.ca
Wed Jul 24 22:30:20 EDT 2002


> We keep running into problems with Mozilla.  After some serious testing,
> trying different things, we are positive that it is a problem with
> Mozilla
> itself and not with our code.  The problem seems to specifically be with
> comments <!-- -->.  Mozilla is having various issues with the comments
> i.e. it does NOT read comments properly in all instances.

It's a problem with the code (specifically, the comments), not the browser.
>From the Comments section of the HTML 4 spec: (see
http://www.htmlhelp.com/reference/html40/structure.html)

    Comments in HTML have a complicated syntax that can be simplified
    by following this rule: Begin a comment with "<!--", end it with
    "-->", and do not use "--" within the comment.

The code from the url you gave has "--" _within_ the comment itself; a
definite no-no.  Is Mozilla a bit too picky?  Perhaps, but that's a Good
Thing.  Forcing compliance with the standard can only make the web better.


- Darryl

 ----------------------------------------------------------------------
  Darryl Friesen, B.Sc., Programmer/Analyst    Darryl.Friesen at usask.ca
  Education & Research Technology Services,     http://gollum.usask.ca/
  Department of Computing Services,
  University of Saskatchewan
 ----------------------------------------------------------------------
  "Go not to the Elves for counsel, for they will say both no and yes"





More information about the Web4lib mailing list