W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2009

[whatwg] disabled and readonly attributes

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 13 Oct 2009 08:15:21 -0500
Message-ID: <dd0fbad0910130615i6f32eec7s813cb301a9d71e03@mail.gmail.com>
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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:18 UTC