W3C home > Mailing lists > Public > www-html-editor@w3.org > October to 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:

http://coolpagehelp.com

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:38:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:17:43 GMT