Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace html5lib with html5rdf, make it an optional dependency #2951

Merged
merged 8 commits into from
Oct 28, 2024

Conversation

ashleysommer
Copy link
Contributor

@ashleysommer ashleysommer commented Oct 23, 2024

This commit undoes some of what was merged in the v7.1 release that made HTML tokenisation of rdf:HTML literals non-optional.
This makes it an optional extra feature of RDFLib again, and moves away from using the deprecated html5lib (and the alias replacement html5-modern), to using the new html5rdf that lives in the RDFLib org.

This also fixes the tests that comparison code paths that were crashing, that was the reason for making HTML tokenisation non-optional in v7.1. Now that these are fixed, its safe to not have html5rdf installed when using RDFLib.

html support is now optional again, and it uses html5rdf rather than html5lib/html5lib-modern.
This reverts commit 6f80ad9cd2cc4b76ff4e1bc0998951768aff7573.
@coveralls
Copy link

coveralls commented Oct 23, 2024

Coverage Status

coverage: 90.284% (-0.004%) from 90.288%
when pulling c32fcbc on html5rdf
into 6d4f093 on main.

@ashleysommer ashleysommer changed the title WIP: Html5rdf Replace html5lib with html5rdf, make it an optional dependency Oct 24, 2024
@ashleysommer
Copy link
Contributor Author

@nicholascar @edmondchuc
This is ready for review now.

@nicholascar nicholascar merged commit 638a867 into main Oct 28, 2024
22 checks passed
@nicholascar nicholascar deleted the html5rdf branch October 28, 2024 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants