W3C home > Mailing lists > Public > www-style@w3.org > December 2002

Using CSS for XML Events

From: Shelby Moore <shelby@coolpage.com>
Date: Mon, 16 Dec 2002 11:36:50 -0600
Message-Id: <4.1.20021216111637.01557b50(null)>
To: www-html-editor@w3.org, www-style@w3.org
Cc: Shane McCarron <shane@aptest.com>, Steven Pemberton <steven.pemberton@cwi.nl>, "T. V. Raman" <tvraman@almaden.ibm.com>

Although I am very happy that XML Events encourages the declaration of
events and handlers orthogonally with respect to the content markup, IMO a
major omission is that target attribute of listener is only an IDREF.

It is common that a particular listener (event + handler) needs to be
applied to large number of content nodes (elements), and it would nice if
target attribute provided a way to classify versus redundant declarations.

For example, look at the new CSS TreeMenu I coded on the (left frame of)
following page, and note that the same onclick event and handler is
declared for nearly every node of the tree:


What is needed is some way to specify a set (a class) of elements to which
the same listener could be assigned.  Perhaps there is some way to leverage
CSS's selectors technology for specifying targets or using CSS to assign
listeners to selectors.

-Shelby Moore
Received on Monday, 16 December 2002 12:36:25 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:04 UTC