W3C home > Mailing lists > Public > www-validator@w3.org > May 2009

Re: Error checking attribute ALT

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 06 May 2009 10:09:53 +0200
To: "MaX Milovanoff" <m-x-m@mail.ru>, www-validator@w3.org
Message-ID: <op.uth0yrqm64w2qv@anne-van-kesterens-macbook.local>
On Tue, 05 May 2009 20:37:44 +0200, MaX Milovanoff <m-x-m@mail.ru> wrote:
> Line 16, Column 65: Attribute alt not allowed on element input at this  
> point.
>
> …input type="text" name="field1" id="field1" alt="0">
>
> Element-specific attributes for element input:
>     ...
>     alt
>     ...

I believe this is a known bug. The problem is a combination of <input>  
being heavily overloaded and RelaxNG not being able to handle it nicely.  
You can only use the alt attribute on <input> if the type attribute  
specifies image.


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Wednesday, 6 May 2009 08:10:43 GMT

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