Skip to content
This repository

Unspecified error when loading in iframe in IE #2064

SamuelKC opened this Issue · 1 comment

3 participants

SamuelKC Todd Parker abdulqadir

I use an iframe to show a preview of my application. It work great in Firefox and Chrome, but in IE it throw an "unspecified error" and the application is not loaded displaying a blank page instead.

The error is at line 2962:

$( document.activeElement || "" ).add( "input:focus, textarea:focus, select:focus" ).blur();

It seem that in IE document.activeElement throw an unspecified error instead or returning null when loading an iframe. Wrapping the line in a try catch seem to fix the issue.


I have the same problem in IE9, IE8 seems to work fine though

Todd Parker toddparker closed this
Brennan McEachran brennanmceachran referenced this issue in mathiasbynens/jquery-placeholder

IE9 Unspecified Error Fix #87

omnisk omnisk referenced this issue in knockout/knockout

'hasfocus' binding causes focus loss #352

Arnold Chan arnoldchan referenced this issue in mathiasbynens/jquery-placeholder

Fixed IE9 error when accessing from an iframe. #99

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.