Ticket #8128 (closed bug: duplicate)
IE7 - possible selector error
|Reported by:||scottjehl||Owned by:|
I'm not sure if this is a bug or not, but in jQuery Mobile we use the following selector to find any focused element on the page and blur it (which in turn hides the keyboard):
$( window.document.activeElement ).add(':focus').blur();
The :focus selector throws an exception in both IE7 and Windows Mobile. Changing it to something more specific, like "input:focus, textarea:focus" avoids the problem, but I figured I should post this in case it's actually a bug.