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

Re: Bug in validator?

From: Ville Skyttä <ville.skytta@iki.fi>
Date: 08 Jul 2003 20:40:55 +0300
To: www-validator@w3.org
Message-Id: <1057686054.22756.120.camel@bobcat.ods.org>

On Tue, 2003-07-08 at 20:22, Chris wrote:
> > ...but I guess you're using the "/>" notation to end elements with a
> > non-X(HT)ML DTD, which is not allowed in earlier HTML versions.  So,
> > the SGML parser disagrees with you about where the elements in your
> > document begin and end.
> 
> We are using the HTML 4.01 transistional DTD, where it is apparently
> allowed (works on other pages).

Ok, my guess was correct then :)

> > Try replacing "<br />" with "<br>" and other similar ones if you have
> > them (like link, hr, img etc), that should fix it.
> > 
> > And while I'm at it, posting references to URLs that exhibit
> > unexpected behaviour is always a good idea, that'll provide people on
> > this list with enough information for useful problem analysis.
> > 
> Sorry, it's behind a login, so I can't post a URL, however, here is a
> larger chunk of the code.

Good.

> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
[...]
> <p/>

Here's another problematic one.  Consider wrapping all the content of
the paragraph inside <p>[paragraph content goes here]</p>.  Another
(uglier) way would be to replace <p/> with <p></p> or just <p>.

BTW; if it wasn't a copy/pasto in the above, your document is missing
the <html> root element (but the 4.01 Transitional DTD might actually
allow it, I don't remember now).

> Changing <BR /> to <BR> has no effect.

I'd still say that the "/>" is the culprit, get rid of all instances of
it, no matter what the element and I bet it works :)

-- 
\/
Received on Tuesday, 8 July 2003 13:40:57 GMT

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