Re: [DOMCore] Making event initializing easier

On 06/27/2011 07:10 PM, Anne van Kesteren wrote:
> On Mon, 27 Jun 2011 18:00:28 +0200, Olli Pettay
> <Olli.Pettay@helsinki.fi> wrote:
>> When "Event" is created, it doesn't need to know about the
>> context in which it is created.
>> When "UIEvent" or "MouseEvent" is created, it does need to know
>> the context, since it needs to set pageX/Y automatically.
>
> How is that different from e.g. XMLHttpRequest? I do not see why that
> should not work.
I don't understand what XHR has to do with this.



> DOM Level 3 Events does not define those members by the
> way...
I know. But CSSOM does, and once MouseEvents can be initialized
using dictionary, CSSOM should specify how pageX/Y get their values.
Though, I guess it doesn't specify it now either.

-Olli

Received on Monday, 27 June 2011 18:45:50 UTC