[whatwg] disabled and readonly attributes
Tab Atkins Jr.
jackalmage at gmail.com
Tue Oct 13 06:15:21 PDT 2009
On Tue, Oct 13, 2009 at 6:12 AM, Markus Ernst <derernst at gmx.ch> wrote:
> In 18.104.22.168 (disabled) and 22.214.171.124.3 (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
126.96.36.199.3, 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?
More information about the whatwg