W3C home > Mailing lists > Public > www-validator@w3.org > September 2008

Re: img tag onload not validated

From: Benjamin Hawkes-Lewis <bhawkeslewis@googlemail.com>
Date: Sun, 28 Sep 2008 21:40:12 +0100
Message-ID: <48DFEBAC.3060904@googlemail.com>
To: pconver <pconver@gmail.com>
CC: www-validator@w3.org

pconver wrote:
> Validating http://sensibilidad.org.ar/sensibilidad/blog/adshow.asp 
> written in iso-8859-1, HTML 4.01 Transitional
> 
> Iím receiving  For //Line 100, Column 126//: *there is no attribute 
> "ONLOAD"*.
> 
> |><IMG onload=||*"*||resize(this)"|

In HTML 4.01 Transitional, only the BODY element may have an ONLOAD 
attribute:

http://www.w3.org/TR/REC-html40/struct/objects.html#edef-IMG

As you've put an ONLOAD attribute on an IMG element, the validator has 
correctly marked that as invalid.

Hope that helps.
--
Benjamin Hawkes-Lewis
Received on Sunday, 28 September 2008 20:40:53 GMT

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