[Webkit-unassigned] [Bug 22691] javascript .select() method doesn't work from onfocus

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 24 16:46:49 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=22691


Venkat Koduru <venkat.koduru at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |venkat.koduru at gmail.com




--- Comment #2 from Venkat Koduru <venkat.koduru at gmail.com>  2010-02-24 16:46:49 PST ---
I posted the following message on the code.google page (there's a link in
Anantha's comment)... but it's been over a month and this bug doesn't seem to
be getting any notice and has not been fixed. So I thought I'd copy my comment
here to see if perhaps it'll get more attention.  Hope this can help developers
to reproduce the bug and fix the issue.  It's not a huge bug, but it seems like
a significant oversight.

I'm having this same exact problem on my website -
http://www.upsidedowntext.com/

This is the code:

    converted.addEvent('focus', function(e) {
        this.select();
    });

converted refers to the bottom textarea box and when focused on, the text
inside is
supposed to be selected. this works in firefox and ie, but not chrome or
safari.

so to re-produce the bug, enter text in the top textarea box. then click on the
bottom textarea box. you'll notice that the text gets selected, and then
de-selected.
does anyone know of a quick fix that can be implemented in JavaScript without
writing
browser-specific code?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list