Open Bug 524360 Opened 11 years ago Updated 2 years ago
Pressing of escape key will auto - reinput the value which has been modified during onkeyup event
Reproduced in: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:188.8.131.52pre) Gecko/20100216 SeaMonkey/2.0.4pre Seems to me that the text immediately disappears after "Escape" is released, so I don't know that this is actually a problem.
Thanks for looking into this problem. True. If holding the "escape" key, the text will re-appear, but releaseing the "escape" key, the text will disappears. At first sight, it shouldn't be a problem. However, unexpected problem occur, expecially compare with other browser. example, I designed a script which work in this way, after user key in 3 characters, it will save the value automatically and clear the textbox. But when user type escape, the textbox reinput the text again, hence produce double entry. when user press "escape" several times, the value been saved several time. This is what I was facing (hence finally I choose opera for my project, instead of firefox). So, I believe, even though the text will be disappear after "escape" is released, it will still generate problem duing the "escape" key being pressed and value been re-input.
My attachment demonstrates the problem a little more clearly. Basically, if you focus into the textbox (via any means), and the first key you press is the ESC key on the keyboard, the "watermark" content will re-appear permanently. If on the other hand, you press the arrow keys, or type some content in and then erase it, THEN pres the ESC key, the content does not come back. The attachment does not supply a DOC type, but that is not related (HTML5, XHTML Strict also trigger the bug). I ran into this on Firefox 7, but not sure how far back the bug goes. Hope this helps in tracking down the issue.
Attachment #563153 - Attachment mime type: text/plain → text/html
I encountered this as well, also in a watermark scenario. Here's the setup: - OS X 10.8.4 / Firefox 22.0 - a <!DOCTYPE html> page - a textbox <input type="text" maxlength="250" name="searchbox"></input> in the page Here's what happens: - a watermark text is programmatically set on page initialization - Upon clicking or tabbing into the textbox, the watermark text is programmatically cleared - With focus still on the textbox, pressing keyboard ESC re-instates the watermark text as the <input>'s value It's a strange behaviour, not observed in Chrome 27 or IE10. I vote for removal unless there's an overriding reason for it to exist.
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
You need to log in before you can comment on or make changes to this bug.