W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2011

Re: Target of onkeyup/down/press events

From: Olli Pettay <Olli.Pettay@helsinki.fi>
Date: Fri, 13 May 2011 17:20:06 +0300
Message-ID: <4DCD3E16.9070108@helsinki.fi>
To: Giuseppe Pascale <giuseppep@opera.com>
CC: "www-dom@w3.org" <www-dom@w3.org>
On 05/13/2011 05:12 PM, Giuseppe Pascale wrote:
> On Thu, 12 May 2011 17:00:11 +0200, Olli Pettay
> <Olli.Pettay@helsinki.fi> wrote:
>>
>> I tried to come one with a testcase which might dispatch key events to
>> document, but so far no luck.
>> If all the elements are removed from document, key events aren't
>> dispatched to document nor window, in gecko, webkit, opera -
>> at least not in my testcase.
>>
>> So, so far the spec looks ok.
>>
>
> I've been thinking about this a bit but I'm still not sure if the spec
> was correct [1].
> What you say is correct, so my confusion is only "linguistic". What does
> "Target" mean in that table?
>
> If it means the "proximal event target" [2]
It means this, and it even says so
"Trusted proximal event target types"


-Olli


(i.e. the value of
> event.target) then I agree with you that the spec was correct.
> But if it just mean "event target" [3] as in you can register a listener
> for this event on the object X, than I think the spec was wrong.
>
>
>
>
> [1] note that meanwhile the editor added Document to the event target.
> [2]
> http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#glossary-proximal-event-target
>
> [3]
> http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#glossary-event-target
>
Received on Friday, 13 May 2011 14:20:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:07 GMT