[Bug 11554] :read-write selector spec is ambiguous on editable input/textarea fields

http://www.w3.org/Bugs/Public/show_bug.cgi?id=11554

--- Comment #4 from Mounir Lamouri <mounir.lamouri@gmail.com> 2010-12-15 17:21:25 UTC ---
So, according to the specs, the input in this case has :read-write applying:
<div contenteditable>
  <input readonly disabled>
</diw>

Is this input's value modifiable by the user? I would say no, at least because
of the disabled attribute [1]. So, we have an element matching :read-write but
is technically read-only. Do we really want to do that?

Can't we have this list changed to this:

   * If the elemnet is an input element to which the readonly attribute
applies, but that are not immutable (i.e. that do not have the readonly
attribute specified and that are not disabled)
   * If the element is a textarea element that do not have a readonly
attribute, and that are not disabled
   * If the element is not an input element nor a textarea element and is
editable

That way, the input element in the previous code will be read-only and match
:read-only.

[1]
http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#enabling-and-disabling-form-controls

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Wednesday, 15 December 2010 17:21:27 UTC