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

[VE][108] I'm using attribute "onerror" in <IMG> for fix bad image-link! In browsers this working, but validator write error

From: Kotsyuba Vasiliy <kotsyuba@vtb.ru>
Date: Thu, 20 Nov 2008 14:15:09 +0300
Message-ID: <B53EAEA45CCEDA40B5821AC086387838011D054A@plupr02.inet.vtb>
To: "'www-validator@w3.org'" <www-validator@w3.org>

Validating ...(is no longer)
Error [108]: "there is no attribute X"

I'm using attribute "onerror" in <IMG> for fix bad image-link!

All browsers processed "onerror" and lanch function if image not loaded!

What we can do whis this for validator?

Thank you.

P.S.:
==========
<img src="foto/ivanov.png" alt="foto_Ivanov" onerror="dwkwa_nophoto(this)">
<script>
function dwkwa_nophoto(object){
	object.src = "foto/nofoto.png";
}
</script>
==========

-- 
With best regards,
Vasiliy Kotsyuba
Received on Thursday, 20 November 2008 12:39:51 GMT

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