Re: Dubious validator error. Validator bug or what ?

From: Christian Smith (csmith@barebones.com)
Date: Wed, May 30 2001

  • Next message: David Paxson: "broken images"

    Date: Wed, 30 May 2001 14:53:24 -0400
    From: Christian Smith <csmith@barebones.com>
    To: sysadmin <andreip@rnc.ro>
    cc: www-validator@w3.org
    Message-ID: <20010530145324-b01010702-ad6a6969-0910-010c@204.107.232.107>
    Subject: Re: Dubious validator error. Validator bug or what ?
    
    On Wednesday, May 30, 2001 at 5:57 AM, andreip@rnc.ro (sysadmin) wrote:
    
    > Lookig at:
    > 
    > <li><b><strong><blink>---&gt;</blink><a href="/rh ...
    >                         ^
    > The validator said:     |
    >                         ^
    > Error: invalid comment declaration; check your comment syntax
    > 
    > ???
    > What comment ???  That wasn't any comment, it was just an ascii-art
    > arrow made out of three dashes and a GT sign (properly encoded 
    > as &gt;).
    > 
    > Care to take a look ?
    
    Post the URL for the page. My bet is that you have a comment earlier in
    the page which is not properly formed.
    
    > P.S. Experienced a maybe similar problem with MSIE, in an url like
    > http://server.na.me/cgi-bin/cgi-name?x=y¤tdate=today&z=t
    > it improperly replaced &curren with asc($)+128. 
    
    This is why you need to entity encode the & in the URL when the URL is
    used as the value of an href attribute.
    
    The correct format would be
    
    http://server.na.me/cgi-bin/cgi-name?x=y&currentdate=today&z=t
    
    
    -- 
    Christian Smith  |  csmith@barebones.com  |  http://web.barebones.com
    
    He who dies with the most friends... Is still dead!