Re: Errors in non-existing elements

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 UTC