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
Popup Open creates exception in IE with JQM 1.4.5 if document.activeElement is null #7968
Browser : IE
Issue : In IE browser, when a popup is being opened, if the document.activeElement is null, the _safelyBlur method is throwing an exception. So if you haven't clicked on any control or tabbed to any control on a html page, after the page is launched, the document.activeElement is null and due to this the exception is raised. How ever if you click/touch anywhere on the body, the document.activeElement is set to a value and this exception is not raised.
Below is the code from jsbin. Donot run it in jsbin as you cannot reproduce this error. You need to simply copy the html, put it in a .html file and place it in a virtual directory in iis/any other webserver and load it from there.