[whatwg] disabled and readonly attributes

On Tue, Oct 13, 2009 at 6:12 AM, Markus Ernst <derernst at gmx.ch> wrote:
> In (disabled) and (readonly) I can't find out what UAs
> should submit if an element is disabled resp. readonly:
> - nothing
> - the default value
> - any value that might have been entered, or assigned via DOM, before
> disabled resp. readonly was set to true
> - any value that might have been assigned via DOM, even after disabled resp.
> readonly was set to true
> - or is this up to the UA?

For all of these, the @readonly attribute does nothing but prevent
user interaction.  I'm not sure off the top of my head whether it
prevents script-based manipulation.  There is no effect on the
submitted value.  @disabled prevents the form element from submitting

The former is explained under the readonly attribute section in, the latter is explained in the form submission algorithm

> I personnally would appreciate some clarity about this.
> Also, <fieldset> has a disabled attribute, but no readonly attribute. Is
> there a reason for this?



Received on Tuesday, 13 October 2009 06:15:21 UTC