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

Handle self-closing style and script tags #23

Merged
merged 5 commits into from
Jan 9, 2024

Conversation

vrischmann
Copy link
Owner

Right now <style /> and <script /> don't work because the parser can't go back to parsing as a $.self_closing_tag: I'm not exactly sure why but I tried to make it work (see #22 for context) and I could not find a way.

This PR is a workaround: handle the self-closing tags directly in $.style_element and $.script_element.

Fixes #22.

@vrischmann vrischmann self-assigned this Jan 9, 2024
@vrischmann vrischmann merged commit c3baaab into master Jan 9, 2024
4 checks passed
@vrischmann vrischmann deleted the self-closing-style-script branch January 9, 2024 12:39
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.

Self-closing style tag is a syntax error
1 participant