W3C home > Mailing lists > Public > www-validator@w3.org > March 2004

Re: Errors in non-existing elements

From: Nick Kew <nick@webthing.com>
Date: Thu, 11 Mar 2004 13:40:27 +0000 (GMT)
To: Boris 'pi' Piwinger <3.14@logic.univie.ac.at>
Cc: www-validator@w3.org
Message-ID: <Pine.LNX.4.53.0403111333490.15158@hugin.webthing.com>

On Thu, 11 Mar 2004, Boris 'pi' Piwinger wrote:

> To give an example: Say you have a web page using embed
> which does not exist in HTML 4. Now there will be a lot of
> attributes to the embed tag. The validator complains about
> each of them. This is useless, it only hides the real error
> and hence makes the output hard to read.

That's an artifact of how the underlying parser works.  It runs
straight through.

So, given:

<foo bar="nonsense" other="rubbish"  >
                  1               2  3
it finds and reports attribute errors at 1 and 2, but the <foo> tag
isn't closed until 3, so it doesn't get checked and reported until
after the attributes.

You might prefer Page Valet's "visual validator" option, which
presents the results differently.

-- 
Nick Kew
Received on Thursday, 11 March 2004 08:40:58 GMT

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