Closed
Bug 313573
Opened 19 years ago
Closed 3 years ago
focusedElement is <html:input> inside XUL <textbox> instead of <textbox> itself
Categories
(Core :: XUL, defect)
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: embix, Unassigned)
Details
(Keywords: testcase)
Attachments
(1 file, 1 obsolete file)
543 bytes,
application/vnd.mozilla.xul+xml
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b5) Gecko/20051006 Firefox/1.4.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b5) Gecko/20051006 Firefox/1.4.1
I was trying to keep the focus locked to a textbox with invalid value. "this.focus();this.select()" doesn't work as documented.
So, I tried to keep the 'id' of element at focus and use the 'id' to set focus. But this workaround did not work either.
The problem is that: unlike the good element (button, checkbox), the textbox element does not provide its 'id' when it has the focus.
Please see attached XUL sample: focusID.xul
Reproducible: Always
Steps to Reproduce:
1.Open the focusID.xul
2.Select the button, its id displays
3.Select the checkbox, its id displays
4.Select the textbox, its id is !empty!
Actual Results:
The textbox's id is empty
Expected Results:
The textbox's is is displayed
Comment 2•19 years ago
|
||
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b5) Gecko/20051024 Firefox/1.5
I am confirming this with today's build. This is a regression of the expected behaviour. Do you know the approximate regression date ?
Flags: blocking1.8rc1?
Updated•19 years ago
|
Keywords: regression
Comment 3•19 years ago
|
||
yes, we need a regression window here.
Comment 4•19 years ago
|
||
Looks like the <html:input> inside the <textbox> is reported as having focus.
Attachment #200586 -
Attachment is obsolete: true
Updated•19 years ago
|
Summary: id of XUL textbox can not be accessed onfocus() → focusedElement is <html:input> inside <textbox> instead of <textbox> itself
Updated•19 years ago
|
Summary: focusedElement is <html:input> inside <textbox> instead of <textbox> itself → focusedElement is <html:input> inside XUL <textbox> instead of <textbox> itself
Comment 5•19 years ago
|
||
I'm not convinced that this is a regression.
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.9a1) Gecko/20050817 Firefox/1.6a1
- Same.
Firefox 1.0.7
- Same for the textbox.
- I get errors when I click on the button or checkbox.
Comment 6•19 years ago
|
||
Until we confirm this is a regression and/or understand better the severity of this - removing from 1.5rc1 list.
Flags: blocking1.8rc1? → blocking1.8rc1-
Comment 7•19 years ago
|
||
Certainly not a recent regression: I see the exact same behavior on both testcases in 20051024 and Firefox 0.8 (20040206).
Comment 8•19 years ago
|
||
Well, not a regression, so removing regression keyword.
From:
http://www.xulplanet.com/references/xpcomref/ifaces/nsIWebBrowserFocus.html
"The currently focused nsDOMElement when the browser is active, or the last focused nsDOMElement when the browser is inactive."
Maybe this is a special case of bug 53007?
I'm not sure if this is a bug at all.
Assignee: nobody → general
Component: General → XBL
Keywords: regression → testcase
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → Trunk
![]() |
||
Comment 9•19 years ago
|
||
This has nothing to do with XBL, really. Certainly not with the core XBL impl. The bug, if any, is either in the XUL api involved (command dispatcher, etc) or in the textbox binding. The former needs documenting as to how it interacts with anonymous content in general; based on the results of that perhaps the latter should be modified.
Assignee: general → nobody
Component: XBL → XP Toolkit/Widgets: XUL
QA Contact: ian → xptoolkit.xul
Comment 10•19 years ago
|
||
1.1 blakeross%telocity.com 2002-08-12 20:25 History quicksearch.
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/toolkit/content/widgets/textbox.xml&rev=1.1
Very old code that considers focusedElement == <input> case.
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: xptoolkit.xul → xptoolkit.widgets
Comment 11•3 years ago
|
||
Marking this as Resolved > Incomplete since the last activity on this issue was 16 years ago and it might not be relevant anymore.
Feel free to re-open if the issue is still reproducible on your end in the latest FF versions.
Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•