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

Custom Tag support and field overhaul #2285

Open
jhy opened this issue Mar 12, 2025 · 0 comments
Open

Custom Tag support and field overhaul #2285

jhy opened this issue Mar 12, 2025 · 0 comments
Labels
improvement An improvement / new feature idea planned Things to get to in the near term

Comments

@jhy
Copy link
Owner

jhy commented Mar 12, 2025

I'm planning on adding Custom Tag support, that will allow various tag properties (white space formating, void, self-closing, etc) to be configured before the Parser is run.

Currently we infer these properties for unrecognized HTML tags (in the HTML tree builder) and for all tags in the XML tree builder.

Would look to have a new Tag instance creator, and a way to provide the Parser with the list of tags. In the case of HTML that could be by modifying the default list (probably extending). In XML it would be the entire set.

These would impact the parse when possible in the HTML5 tree builder as most rules don't come from tag properties but from explicit rules. But more impactful for XML tree builder.

And will particularly help for the XML tree builder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement An improvement / new feature idea planned Things to get to in the near term
Projects
None yet
Development

No branches or pull requests

1 participant