Open
Bug 652531
Opened 14 years ago
Updated 2 years ago
select elements fail to fire change event when applying position: relative during keyup
Categories
(Core :: DOM: Core & HTML, defect, P3)
Core
DOM: Core & HTML
Tracking
()
NEW
People
(Reporter: dunbarb2, Unassigned)
Details
Attachments
(2 files)
467 bytes,
text/html
|
Details | |
5.47 KB,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0) Gecko/20100101 Firefox/4.0
Build Identifier: http://hg.mozilla.org/releases/mozilla-2.0/rev/6be9e31d01b4
If the style.position of an input or select element is changed from static to relative (or vice versa) during a keyup event the element fails to fire a change event upon losing focus.
Reproducible: Always
Steps to Reproduce:
1. bind to the keyup and change events of an input or select element
2. during keyup, change the style.position of the element to relative (or from relative to static)
3. focus on the element
4. press a key
5. change focus
Actual Results:
the change event is not fired
Expected Results:
the change event is fired
Reporter | ||
Comment 1•14 years ago
|
||
Comment 2•14 years ago
|
||
Sounds like we need to persist more state of some sort here across the reframe...
Status: UNCONFIRMED → NEW
Component: DOM: Core & HTML → Editor
Ever confirmed: true
QA Contact: general → editor
Updated•14 years ago
|
Attachment #528095 -
Attachment mime type: text/plain → text/html
Comment 3•14 years ago
|
||
What's a change event? The input event is fired successfully...
Comment 4•14 years ago
|
||
> What's a change event?
The one that onchange="..." would get.
Comment 5•14 years ago
|
||
(In reply to comment #4)
> > What's a change event?
>
> The one that onchange="..." would get.
It is not something which is fired by the editor, is it? If not, this should move to DOM I think.
Comment 6•14 years ago
|
||
> It is not something which is fired by the editor, is it?
It's fired by nsTextControlFrame::CheckFireOnChange. The problem is that we keep track of mFocusedValue in the frame. We should probably move that to either the editor state or the DOM node, whichever makes the most sense.
Comment 7•14 years ago
|
||
(In reply to comment #6)
> > It is not something which is fired by the editor, is it?
>
> It's fired by nsTextControlFrame::CheckFireOnChange. The problem is that we
> keep track of mFocusedValue in the frame. We should probably move that to
> either the editor state or the DOM node, whichever makes the most sense.
We should move it to nsTextEditorState (which has to resort to a dirty hack to access it now: <http://mxr.mozilla.org/mozilla-central/source/content/html/content/src/nsTextEditorState.cpp#1777>).
Mounir, is this something that you're interested to work on?
Comment 8•12 years ago
|
||
The <input> part of this bug has been fixed by bug 722599 and bug 787102 (Firefox 16 and above).
The <select> part isn't fixed yet so I'm changing the summary to make it <select> only.
One solution to fix this would be to make those change events being fired by the content.
Component: Editor → DOM: Core & HTML
OS: Windows 7 → All
Hardware: x86_64 → All
Summary: input and select elements fail to fire change event when applying position: relative during keyup → select elements fail to fire change event when applying position: relative during keyup
Version: unspecified → Trunk
Comment 9•11 years ago
|
||
Assignee: nobody → andrew.quartey
Attachment #795687 -
Flags: review?(mounir)
Comment 10•11 years ago
|
||
Comment on attachment 795687 [details] [diff] [review]
Fix
Cancelling review as this breaks other functionality i didn't take into account such as the use of special key F4 to toggle the drop down list.
Attachment #795687 -
Flags: review?(mounir)
Updated•6 years ago
|
Priority: -- → P3
Comment 11•2 years ago
|
||
The bug assignee is inactive on Bugzilla, so the assignee is being reset.
Assignee: andrew.quartey → nobody
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•