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

> <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 UTC