Skip to content

HTML validation - Feature PR #180

Open
@diervo

Description

@diervo

TL;DR: would the owners of this repo be open to introduce a new API to validate a given HTML page or fragment?

Today the parser fixes internally the tree for you (incorrect self closing tags, missing tags, etc), giving you the already fixed tree.

I've been trying to find a good HTML validator, but the only one that is spec compliant is the one from W3C which is written in Java and found only as a service which is very inconvenient for most uses.

I believe given that this is the most used/compliant HTML parser, should be pretty straightforward to add HTML validation

Rather than creating a fork I would gladly do a PR if there is no opposition to this feature.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions