Bug while validating a web page

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug while validating a web page

Patricia Bouyer

Hello

While using the validator for debugging a web site, I have found a  
bug in the HTML validator (or at least I think so). The error  
concerns the tag for closing a table. I had written </TABLE instead  
of </TABLE> on my web page, and this had a buggy behaviour on some  
navigators (like opera or safari, but not firefox). However, the page  
was validated as "Valid HTML 4.01 Transitional".

I have tried to simplify the buggy page (but if I simplify too much,  
the bug is no more there). The buggy web page (though validated) is  
available at the address
                http://www.lsv.ens-cachan.fr/~bouyer/example.html
The corresponding correct page is
                http://www.lsv.ens-cachan.fr/~bouyer/correct-example.html

Best regards,

Patricia Bouyer.


Reply | Threaded
Open this post in threaded view
|

Re: Bug while validating a web page

Lachlan Hunt

Patricia Bouyer wrote:
> While using the validator for debugging a web site, I have found a bug
> in the HTML validator (or at least I think so).

   "Nothing wrong with the validator here, it just knows HTML
    better than you do." -- David Dorward

> The error concerns the tag for closing a table. I had written </TABLE instead of </TABLE> on my
> web page,

It's called an unclosed-tag.  The '>' can be omitted in certain
circumstances, such as when followed by another start- or end-tag.

http://www.w3.org/TR/html4/appendix/notes.html#h-B.3.7

So, for example, the following is valid:

   <p<em>The quick brown fox jumps over the lazy dog.</em>
....^

(Note the missing '>')

But this is not:

   <p The quick brown fox jumps over the lazy dog.

> and this had a buggy behaviour on some navigators (like opera
> or safari, but not firefox). However, the page was validated as "Valid
> HTML 4.01 Transitional".

The fact that browsers have bugs has no impact on the validity of a
document, despite the fact that such bugs may have practical implications.

--
Lachlan Hunt
http://lachy.id.au/