Skip to content

Consider offering a legacy handling of non-html5 compliant self-closing tags? #2330

@tballison

Description

@tballison

I initially opened #2329 for what I thought was a regression. I was wrong, this was a new feature to support the html5 spec.

The more I think about it though, I'm yearning for the old days where messy self-closing tags that were not html5 compliant were closed.

@wiedsche notes that the new behavior in 1.20.1 can lead to some concerning behavior.

Is there any way to offer a switch for legacy behavior? Aside from html5 compliance, was there anything wrong with the behavior in 1.19.1 and before?

As an open source maintainer, I say from the bottom of my heart, @jhy , that I'm super grateful for all of your work on jsoup. It is a gem! Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementAn improvement / new feature idea

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions