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

Re: really sorry - can't really be sure if it's a bug - value attribute on image type input

From: Jens O. Meiert <jens@meiert.com>
Date: Fri, 14 May 2010 09:47:29 -0700
Message-ID: <AANLkTimom7juydpFuT99_j8BvaAxQwAkje0zXibM_pnA@mail.gmail.com>
To: MEM <talofo@gmail.com>
Cc: www-validator@w3.org
> <input type="image" src="Imagens/contactos_botaoenviar.png"
> name="enviarRecomendacao" alt="enviar recomendação" value="enviar">
>
> Line 152, Column 151: Attribute value not allowed on element input at
> this point.

An “input” element of type “image” takes the image as the value
(@src). Depending on what you want to achieve maybe use @title or a
separate “input” element of type “hidden.”

The specs don’t seem to be too clear about @value on image buttons
however [1,2], though I had only so much time to verify.


[1] http://www.w3.org/TR/REC-html40/interact/forms.html#input-control-types
[2] http://www.whatwg.org/specs/web-apps/current-work/multipage/number-state.html#image-button-state

-- 
Jens O. Meiert
http://meiert.com/en/
Received on Friday, 14 May 2010 16:48:24 GMT

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