[work] [thelist] Validation question

Hershel Robinson hershelr at netvision.net.il
Sun Sep 4 12:35:30 CDT 2005


Peter-Paul Koch wrote:
> I just tried to port http://www.quirksmode.org/css/displayimg.html to
> valid XHTML 1.0 . However, in doing so I encountered a very weird
> validation error.

> Can anyone explain this oddness? Either an [img /] element is allowed
> an onload attribute, or it isn't, I'd say.

I would tend to agree with you. The HTML Validator extension on FF shows:

line 6 column 1 - Warning: <link> inserting "type" attribute
line 50 column 1 - Warning: <img> proprietary attribute "onload"
line 55 column 2 - Warning: <img> proprietary attribute "onload"
Info: Doctype given is "-//W3C//DTD XHTML 1.0 Transitional//EN"
Info: Document content looks like HTML Proprietary
3 warnings, 0 errors were found!

which is what we would expect. The W3 validator, by the way, says:

Note: The Validator XML support has some limitations.

Draw your own conclusions. :)

Hershel


More information about the thelist mailing list