Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Aug 5, 2020. It is now read-only.
This repository was archived by the owner on Aug 5, 2020. It is now read-only.

document.readyState == 'interactive' is invalid DOM ready test in IE10 #136

@shogun70

Description

@shogun70

This relates to a bug in the v2.0 branch.

/complete|interactive/.test(document.readyState) and document.onreadystatechange are not reliable as DOM ready tests. All versions of IE can have interactive state before the DOM is fully loaded. Also, readystatechange can fire before the DOM is fully loaded.

I have written an exploratory test which is sufficient to confirm this bug.

https://gist.github.com/shogun70/5388420

The jQuery project also has a bug report -
document ready is fired too early on IE 9/10
and a "fix" -
sometimes IE10 and lower have document.readyState == "interactive" way too early

domReady also has a report and fix -
Add Guard for invalid readyState in IE9 and IE10

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