Skip to content

isDisabled() returns true, while JS is set to disabled #418

@Deadc00l

Description

@Deadc00l

Hello,
I have an issue with the display of elements in case javascript is set to disabled:
com.gargoylesoftware.htmlunit.html.HtmlElement.isDisplayed()

Example html

<div id="div" style="display:none;">
    <span id="test">
        Some Text
    </span>
</div>

Expected result of span with id "test" is false (because of style="display:none;")
HtmlUnit returns true.

@rbri, could you please take a look at this?

Thanks and greetings

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