Closed
Bug 296471
Opened 20 years ago
Closed 4 years ago
Richer focus model like IE
Categories
(Core :: DOM: Core & HTML, enhancement, P5)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: jdperlow, Unassigned)
References
Details
(Whiteboard: DUPEME -- see also bug 296469)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3
IE has a richer focus/activation model than Firefox. IE differentiates between
focus and activation such that it is possible to set an element as active
without affecting whether the browser is active. These are exposed in IE with
document.activeElement, HTMLElement.setActive(), onBeforeActivate, onActivate,
onBeforeDeactivate, and onDeactivate.
Reproducible: Always
I'm working on a new product that will have a lot of usage. It works well in IE
and I'd like it to work at least as well in Mozilla. One of the things blocking
this is a richer focus model, so I'm hoping we can improve this for FF1.1
Flags: blocking-aviary1.1+
Comment 2•20 years ago
|
||
kcoleman, timeless didn't bother saying it, but please don't set blocking flags
to +, instead nominate by setting to ?.
This may be a dup; it may be worth doing. Not much will happen without the
right people cc'd on it. I'll confirm it on spec.
/be
Status: UNCONFIRMED → NEW
Ever confirmed: true
Hrm.. 'active' is a very confusing term here. In mozilla we use it to refer to
the action of activating an object, such as clicking a link or pressing a button.
Seems like IE means it to mean the currently focused node within a document.
I.e. the difference between calling focus() and setActive() is that the former
focues the document, whereas the latter doesn't.
Comment 4•20 years ago
|
||
There is no way whatever we do here could happen for 1.8 in any case, as far as
I can tell... (quite apart from the lack of a clear and thorough description of
what is being requested).
Comment 5•20 years ago
|
||
Microsofts documentation on this:
activeElement Property:
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/activeelement.asp
setActive Method:
http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/setactive.asp
Events (with links to the other events mentioned in comment 0):
http://msdn.microsoft.com/workshop/author/dhtml/reference/events/onbeforeactivate.asp
Updated•20 years ago
|
Flags: blocking-aviary1.1? → blocking-aviary1.1-
Updated•19 years ago
|
Whiteboard: DUPEME → DUPEME -- see also bug 296469
Comment 6•19 years ago
|
||
See also bug 307933, "JavaScript focus changes in background tabs are ignored instead of confined".
Comment 7•18 years ago
|
||
Should this bug be blocked by
Bugzilla Bug 220900 Focus breaks, cut/copy/paste and other focus-dependent tasks broken
Comment 8•18 years ago
|
||
No
Comment 9•18 years ago
|
||
> IE differentiates between focus and activation such that it is possible to set
> an element as active without affecting whether the browser is active.
It shouldn't be possible to affect whether the browser is active. So the existing methods should be enough. No?
> These are exposed in IE with document.activeElement,
I've added that to DOM5 HTML.
> HTMLElement.setActive(), onBeforeActivate, onActivate, onBeforeDeactivate, and
> onDeactivate.
I don't really see the point of these given the restriction that focusing can't affect the browser itself.
Updated•11 years ago
|
Assignee: general → nobody
Comment 10•7 years ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046
Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.
If you have questions, please contact :mdaly.
Priority: -- → P5
Comment 11•4 years ago
|
||
We have no plans to change our focus model.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•