Approved: Fortect
Over the past few weeks, some of our users have encountered a known bug with an active element of an unspecified error document htmlfile. This problem occurs for a number of reasons. We will talk about this below.
Are located
There are two funny document.activeElement
errors associated with This, i.e. which have recently appeared in jQuery UI. I thought that in order to relieve others of the pain, this needs to be documented.
Accessing Document.activeElement
From
IE9
And in that
you want to know which element has focus.
/ * other.html * /
In all browsers except IE9, this preserves the portion of the element that has focus in the reminder document (
by default). In IE9, this will inexplicably cause "Unspecified error"
.
Yes, you read that correctly; ACCESSING the assets of the parent activeElement
generates an error in the document
in IE9.
What can you say about the product? Since access is the source of the error, there is only one catch / catch attempt.
var activeElement;Try activeElement matches parent.document.Catch (activeelement; Guilt) active element = parent.document.body;
Fortunately, this is another problem with whichoh, only IE9 collides; there are no such methods in IE 8, Top 7 or 10.
Blur
Changes Windows For IE9 And IE10
If you call document.body.blur ()
through IE9 or ie10, the application window switches. You read it right again; and when you have IE and Notepad open, switch focus to Notepad by linking to document.body.Will blur ()
. If you don’t believe me, open IE9 or even IE10 and try yourself checking document.body.blur ()
in the console.
Remember in the previous section that the default activeelement
is the exact
. So if you call document.activeElement.blur ()
at all, you are likely to change the application form windows for your users.
To resolve this issue, make sure activeElement
was not always
before using blur ()
.
if (document.activeElement.nodeName.toLowerCase ()! == "body") Doc .activeElement.This blur ();
Fortunately, the problem was only fixed in IE11; document.body.blur ()
no longer modifies windows.
Build The Device
This is a commit I ended up with jQuery UI errors.
$ (document.activeElement) .blur ();
// Supported: IE9// IE9 throws a strong document "Unspecified error" when accessing the .activeElement and starting the
Friend, you said you did it with vs 09 and then just add a breakpoint because one of the variables is null and get the value I will post my fix, check it
/ p>
var textLength means text.value.length;
text.setSelectionRange (textLength, textLength);
}
}
}
Approved: Fortect
Fortect is the world's most popular and effective PC repair tool. It is trusted by millions of people to keep their systems running fast, smooth, and error-free. With its simple user interface and powerful scanning engine, Fortect quickly finds and fixes a broad range of Windows problems - from system instability and security issues to memory management and performance bottlenecks.
Mark as helpful if you really got help
Do you have any questions about this project? Create a free GitHub account to open a public issue and connect with the maintainer and community.
By hovering over “Sign up on github”, you agree to our terms of use and Isolation declaration. From time to time, we will send you high quality emails to your account.
Already on GitHub? Login to your account
Speed up your computer's performance now with this simple download.