[webkit-dev] focusin/focusout events

Darin Adler darin at apple.com
Tue Jul 27 10:37:48 PDT 2010


On Jul 26, 2010, at 6:32 PM, Ojan Vafai wrote:

> On Mon, Jul 26, 2010 at 12:06 AM, Darin Adler <darin at apple.com> wrote:
> You mention activeElementId, but there must be other side effects that matter.
> 
> The only other side effects I can think of are the focus outline (which could probably be tested via getComputedStyle?) and clearing the selection.

Style changes specified using the :focus pseudo-style is another type of side effect.

> This sequence doesn’t sound too terrible to me. But I don’t fully understand the proposal. At the time the focusin event fires we won’t yet know what item is getting focus?
> 
> I think we do know this and it wouldn't be too hard to implement. It's just a question of what we think the best behavior is. Specifically, in Document::setFocusedNode, we know both the new focused node and the old focused node when firing these events.

The “we” I meant is the JavaScript code on the webpage.

    -- Darin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20100727/1e86816a/attachment.html>


More information about the webkit-dev mailing list