Re: img tag onload not validated

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 UTC