In textarea focus event handler, $(this).is(':focus') == false in Chrome & Safari
|Reported by:||Owned by:||mikesherov|
jsFiddle here: http://jsfiddle.net/hJwKC/4/
All browsers report 'true,true', except Chrome and Safari which both report 'false,true'. The same is the case for <input> tags.
I'm not sure what the expected behaviour is - whether an element should only report as focused after the focus handler has completed, but the cross browser inconsistency led me to believe it could be a bug. I realise it could also be a webkit bug (or feature).
Change History (6)
comment:3 Changed 5 years ago by
|Component:||unfiled → selector|
|Milestone:||None → 1.8.2|
|Priority:||undecided → low|
|Status:||closed → reopened|