Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
IE8 + iframe: window goes to background #2821
When a jquery mobile page is loaded in an iframe, it causes IE8 browser window to lose focus.
Steps to reproduce:
Traced the issue to line 3028:
$( document.activeElement || "" ).add( "input:focus, textarea:focus, select:focus" ).blur();
Apparently in IE8, activeElement returns the body element, and using the blur() method on it causes this behaviour.
On my website I replaced this line with the following code. You may verify and possibly commit it.