I found a bug in the search box. When the search box expands, the cursor moves to the end of the text field. If you're editing an already existing search text, this can cause what you are typing to end up in two places.
Steps to reproduce:
- Click in the search box and type
"test phrase"including the quotes.
- Click outside the search box so it shrinks again.
- Double click on the word
phrasein the search box so that only that word is selected. The closing quote should not be selected.
Expected result: The cursor position should not move when the text field expands. Only the word
phrase should be replaced with
paragraph resulting in
"test paragraph" in the text field.
Actual result: As soon as I start typing
paragraph the text field expands and the cursor moves to the end of the text field. This results in the text field now showing
I'm using Firefox 3.6.25 on Windows 7.
UPDATE: I just tried this in Internet Explorer 8 and cannot reproduce the problem. This bug might be in Firefox. I'd appreciate knowing if other people can reproduce the bug in other web browsers.