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

[whatwg] False orthogonal nature :read-only and :disabled in WF2

From: Rikkert Koppes <lists@rikkertkoppes.com>
Date: Thu, 12 Feb 2009 17:30:01 +0100
Message-ID: <49944E89.9080604@rikkertkoppes.com>
Either I am rather confused or there are some misunderstandings still. 
Some observations:

Ian Hickson wrote:
>>> Having them be orthogonal is far more useful to authors. For example, 
>>> imagine the following stylesheet:
> I've made HTML5 say that :read-write doesn't apply to disabled controls.
(1) If :read-write does not apply to disabled controls, :read-only does 
(since it applies to all other html elements - meaning they are mutually 
exclusive). Hence :disabled implies :read-only (not vice versa for the 
record) and hence :disabled and :read-only are not orthogonal.

The spec now says :read-write does not apply to input elements that do 
NOT have the readonly attribute specified AND that are NOT disabled, or 
in other words (by mutual exclusivity), :read-only applies to input 
elements that have the readonly attribute specified OR are disabled.

Rikkert Koppes
Received on Thursday, 12 February 2009 08:30:01 UTC

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