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

Option to make the HTML output also be parseable as well-formed schemaless XML #34

Open
gsnoff opened this issue Nov 5, 2023 · 0 comments

Comments

@gsnoff
Copy link

gsnoff commented Nov 5, 2023

Some applications can make use of existing XML parsers for automated data manipulation (e.g. with XPath/XQuery/XSLT, but not necessarily), and since HTML parsing rules derive from SGML, it might be useful to generate output that passes both as valid HTML5 and as well-formed XML.

For example, the following self-closing element:

<input checked>

upon enabling such an option would become like:

<input checked="checked" />

(Note the space in front of the trailing slash, which is required here by SGML-derived HTML parsing rules.)

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

No branches or pull requests

1 participant