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

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

           Summary: :read-write selector spec is ambiguous on editable
                    input/textarea fields
           Product: HTML WG
           Version: unspecified
          Platform: PC
               URL: http://dev.w3.org/html5/spec/Overview.html#selector-re
                    ad-write
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: pre-LC1 HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: ehsan@mozilla.com
         QAContact: public-html-bugzilla@w3.org
                CC: bzbarsky@mit.edu, mike@w3.org,
                    public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org, mounir.lamouri@gmail.com


Please see the :read-write selector in the current version of the spec.  To
quote it here:

The :read-write pseudo-class must match the following elements:

   * input elements 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)
   * textarea elements that do not have a readonly attribute, and that are not
disabled
   * any element that is editable

I find it really hard to determine whether this means that :read-write should
match the input element in the following markup or not:

<div contenteditable="true">
  <input readonly>
</div>

I would expect the logical thing to do here would be to make it match
:read-only, which is what would be inferred from the spec if the bullet point
list above is interpreted as a set of if-else conditions.  But I think we
should be more specific here anyways.

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

Received on Wednesday, 15 December 2010 08:37:33 UTC