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

Re: img tag onload not validated

From: Henri Sivonen <hsivonen@iki.fi>
Date: Mon, 29 Sep 2008 11:11:51 +0300
Cc: pconver <pconver@gmail.com>, www-validator@w3.org
Message-Id: <99697983-EDB7-4E6A-B182-13E43A5A3262@iki.fi>
To: Benjamin Hawkes-Lewis <bhawkeslewis@googlemail.com>

On Sep 28, 2008, at 23:40, Benjamin Hawkes-Lewis wrote:

> 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


onload on <img> is allowed in HTML5, so this can be resolved by  
upgrading the validation target.

HTML5 validation is available at
http://html5.validator.nu/
and
http://qa-dev.w3.org/wmvs/HEAD/

-- 
Henri Sivonen
hsivonen@iki.fi
http://hsivonen.iki.fi/
Received on Monday, 29 September 2008 08:12:58 GMT

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