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

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

From: MEM <talofo@gmail.com>
Date: Wed, 12 May 2010 17:27:37 +0100
Message-ID: <AANLkTikFb8Vx5LPf3yX7L9vwR8A2KBJ1ThrOTRjHjmC_@mail.gmail.com>
To: www-validator@w3.org
Hello all,

In order to have the form properly processed on the server side I need
to add the value property on my image type input field, like so:

<input type="image" src="Imagens/contactos_botaoenviar.png"
name="enviarRecomendacao" alt="enviar recomendação" value="enviar">

However, when I validate, I'm getting the following error message on
the validator:

Line 152, Column 151: Attribute value not allowed on element input at
this point.

…enviar.png" name="enviarRecomendacao" alt="enviar recomendação" value="enviar">

Element-specific attributes for element input:
    Global attributes
    accept
    alt
    autocomplete
    autofocus
    checked
    disabled
    form
    formaction
    formenctype
    formmethod
    formnovalidate
    formtarget
    height
    list
    max
    maxlength
    min
    multiple
    name
    pattern
    placeholder
    readonly
    required
    size
    src
    step
    type
    value
    width

So, from above, we can see that, actually, value IS a valid attribute
of input element, and should be allowed.
Could this be a bug?

Kind Regards and sorry for any inconvenience,
Márcio
Received on Friday, 14 May 2010 13:23:58 GMT

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