W3C home > Mailing lists > Public > www-style@w3.org > February 2012

Re: [css3-regions][css3-page] region based page templates

From: David Hyatt <hyatt@apple.com>
Date: Mon, 20 Feb 2012 11:51:01 -0600
Cc: Brad Kemper <brad.kemper@gmail.com>, Vincent Hardy <vhardy@adobe.com>, www-style list <www-style@w3.org>
Message-id: <E2880B3C-EE54-4366-A20D-FD884F3CD67D@apple.com>
To: Sylvain Galineau <sylvaing@microsoft.com>
On Feb 17, 2012, at 6:39 PM, Sylvain Galineau wrote:

>>    sylvaing: without dom elements, you can't receive clicks, etc.
>> 
>> That seems like a solvable problem that should be solved for all generated pseudo-elements (like ::before and ::after too). Something like >'getElementsByTagName("body")[0].pseudos.slot[0]'.addEventListener(click, myfunction)'.
> 
> That is the general concept, yes. Though such nodes are by definition not in the DOM and using the same plumbing means defining what bubbling
> and other things that assume a parent chain look like. I haven't thought about it much yet but my working assumption is that it could be trickier
> than it looks. 
> 

Rather than adding event handlers to the anonymous boxes, I think it would be simpler if you just register event handlers with the nearest enclosing explicit DOM element, and then have a field that allows you to figure out which anonymous box was hit.

dave
(hyatt@apple.com)
Received on Monday, 20 February 2012 17:51:40 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:50 GMT