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

Add autoCloseVoidElements #163

Merged
merged 4 commits into from Nov 14, 2020

Conversation

TroyAlford
Copy link
Owner

@TroyAlford TroyAlford commented Nov 10, 2020

Add a new autoCloseVoidElements prop, which allows parsing things like <img src="foo.png"> (no />, no closing tag). While this is invalid JSX, it is valid HTML - so for implementations which are tied to WYSIWYG HTML editors which produce correct HTML, this resolves a major issue.

Note: the implementation only enables this "auto-closing" functionality for non-capitalized tags which are specifically listed in the HTML specification as void elements.

@TroyAlford TroyAlford merged commit fd97894 into develop Nov 14, 2020
@TroyAlford TroyAlford deleted the feature/experimental-autoCloseVoidElements branch November 14, 2020 21:03
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.

None yet

1 participant