Skip to content

HtmlUnit 3.6.0 unexpected deletion of HtmlForm.getLostChildren() #647

@MarkEWaite

Description

@MarkEWaite

Thanks so much for your maintenance and care of HtmlUnit. We use it many places in the Jenkins project.

The 3.6.0 release of HtmlUnit seems to have removed HtmlForm.getLostChildren() and the concept of lost children of a form in 3ce40a9 . There is no entry in the release notes to warn about that removal.

The comment message on 3ce40a9 does not hint that the removal is intentional, but it may have been intentional and unstated. It seems that rather than keeping a separate list of lost children, now the code assigns the owning element of the "lost child" to the form that is consuming the element.

If my understanding is correct, I think that means we can use HtmlForm.getHtmlElementDescendants() to replace HtmlForm.getLostChildren() though that seems like it will return all children, not just the lost children.

Any recommendation on the path we should take to replace our reference to HtmlForm.getLostChildren()?

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