W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > December 2010

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

From: <bugzilla@jessica.w3.org>
Date: Wed, 15 Dec 2010 17:21:26 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1PSv2c-00037T-7W@jessica.w3.org>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:01:35 UTC