Skip to content

Unspecified error on Internet Explorer in an iframe with document.activeElement #193

Closed
@michaelwnelson

Description

@michaelwnelson

This was brought up as an issue in VueJS as well.

In short, when inside an iframe in Internet Explorer, the document.activeElement check causes an unspecified error. Here is a screenshot of the error in the console:
Image of Internet Explorer Error

It appears it has been resolved as an Internet Explorer bug recently However, it would appear this could also be addressed without waiting on an Internet Explorer update for users.

As benvirus' comment points out, it appears this can be address by changing the logic to check for document.activeElement to something along these lines:

try {
    return document.activeElement !== elm && elm.value !== checkVal
} catch (e) {
    return true;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions