W3C home > Mailing lists > Public > www-validator@w3.org > January 2006

Re: [VE][108] Error Message Feedback

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Sat, 28 Jan 2006 17:05:04 +1100
Message-ID: <43DB0990.5050600@lachy.id.au>
To: "nebiki@sweetheartsguild.com" <nebiki@sweetheartsguild.com>
CC: www-validator@w3.org

nebiki@sweetheartsguild.com wrote:
> Validating http://www.sweetheartsguild.com/pages.php?pages=news
> Error [108]: "there is no attribute X"
> /Line 71 column 129/: there is no attribute "ONLOAD".
> |...gn/menu_banners/banner_4.jpg" onload=*"*initImage('p_mban');" alt="" 
> style="wid|
> Hello,
> I checked the specification but onload is valid attribute for img and it 
> works correctly but validation doesnt.

Which spec did you check?  onload isn't valid for img elements in any 
HTML recommendation that I'm aware of.  To solve this, you could use the 
onload in the body element instead and then when the script executes, 
iterate through all the images and run the initImage() function on them.

Lachlan Hunt
Received on Saturday, 28 January 2006 06:05:22 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:54 UTC