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

fix: script tag now forces open-closed tag pair #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

AustinHellerRepo
Copy link

@AustinHellerRepo AustinHellerRepo commented Jun 21, 2023

The script tag usually does not contain any contents, so (prior to this PR) it rendered with the closing anchor />, but this causes issues when rendering the HTML. This update adds a function to SimpleElement that returns if the render should include the separate closing tag. As of right now the only reason is if the tag_name is "script", but this can now easily be expanded in the future. There are also instances when the user may intend for a tag to be empty (ex: <div class="someClass"></div>). This update also fixes these instances.

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.

1 participant