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

Define explicit handling rules for HTML 4 elements #33

Open
martintoreilly opened this issue Dec 14, 2018 · 0 comments
Open

Define explicit handling rules for HTML 4 elements #33

martintoreilly opened this issue Dec 14, 2018 · 0 comments
Labels
future Needs revisiting in the future

Comments

@martintoreilly
Copy link
Member

At the moment we unwrap all elements not defined in the HTML5 standard by default. However we cannot tell if an unknown element will be treated as a block or inline element by the browser. Therefore we risk merging two blocks of text that would be rendered as separate visual "paragraphs" into a single visual "paragraph". By explicitly define parsing behaviour for "knowable" pre HTML5 tags we can minimise the risk of treating a "knowable" block level element as inline - see issue

@jemrobinson jemrobinson added the future Needs revisiting in the future label Jan 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
future Needs revisiting in the future
Projects
None yet
Development

No branches or pull requests

2 participants