Skip to content

document.readyState should be interactive in DOMContentLoaded event handler #180

@RuralHunter

Description

@RuralHunter

The code below shows "interactive" in real browser while in htmlunit it's "loading".

<html>
    <head>
        <title>
            test
        </title>
        <script>
document.addEventListener('DOMContentLoaded', function () {
    alert('readyState='+document.readyState);
});
        </script>
    </head>
    <body>
        test   
    </body>
</html>

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