W3C home > Mailing lists > Public > www-forms-editor@w3.org > January 2002

Focus event

From: Steven Pemberton <steven.pemberton@cwi.nl>
Date: Tue, 22 Jan 2002 15:41:57 +0100
Message-ID: <00d101c1a352$f384d8a0$1000000a@local.net>
To: <www-forms-editor@w3.org>
In 4.3.3, for the xforms:focus event, it says "Default processing for these
events results in the following: None; notification events only."

However, 10.5 setFocus says
"This action sets focus to the form control referenced by the idref
attribute by dispatching an xforms:focus event."

So one says it is informational and the other says it is an action

Two solutions:
1) Two events, one to set the focus, and one to announce that focus has been
2) Only the action event, since presumably there is no case that this action
will not be honoured, and so you can listen for it for information purposes.

In this case, section 4.3 (overview of) interaction events (which is wromgly
numbered, and should be numbered 4.1.3), says that focus bubbles. If it is
an action event, then it should not bubble (since then focus would be set on
all elements in the bubbling chain).

Steven Pemberton
Received on Tuesday, 22 January 2002 09:41:25 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:25:03 UTC