W3C home > Mailing lists > Public > www-validator@w3.org > July 2001

Re: Invalid validation?

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Tue, 17 Jul 2001 11:50:16 +0200
To: Alberto Bagnai <albagnai@tin.it>
Cc: www-validator@w3.org
Message-ID: <ac28ltgue409qn0p6bvfl0lq05jhcqp5bi@4ax.com>
* Alberto Bagnai wrote:
>My page was written in valid HTML 4.01 until I cutted and pasted the link
>you provided to the validator.

Well, if you cut and paste this smiley: <&B-> you'll get errors, too.
For a reason.

>Below are the results of attempting to parse this document with an SGML
>parser. 
>Line 189, column 84: 
>  ...
>/check?uri=http%3A%2F%2Fwww.uniroma1.it%2FECIS%2F&doctype=Inline"><img ...
>                                                   ^
>Error: unknown entity "doctype" (explanation...)
>
>So, as Juvenal would say, "who validates the validators?"...

It's not the validators fault, it's your fault. You cannot just paste
abitrary data into HTML documents and hope they validate, you have to
escape special characters, nominally < and &. If you use

  "...a1.it%2FECIS%2F&amp;doctype=Inline"><img ...

it'll validate ust fine.
-- 
Björn Höhrmann { mailto:bjoern@hoehrmann.de } http://www.bjoernsworld.de
am Badedeich 7 } Telefon: +49(0)4667/981028 { http://bjoern.hoehrmann.de
25899 Dagebüll { PGP Pub. KeyID: 0xA4357E78 } http://www.learn.to/quote/
Received on Tuesday, 17 July 2001 05:51:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:13:59 GMT