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) blank if tag content #449

Merged
merged 1 commit into from
Aug 12, 2020

Conversation

dummdidumm
Copy link
Member

if-blocks can contain the < operator, which mistakingly is
parsed as a "open tag" character by the html parser.
To prevent this, just replace the whole content inside the if with whitespace.
#326

Also remove the i modifier from regex because {#If or {#IF are not valid.

if-blocks can contain the `<` operator, which mistakingly is
parsed as a "open tag" character by the html parser.
To prevent this, just replace the whole content inside the if with whitespace.
sveltejs#326

Also remove the `i` modifier from regex because {#If or {#IF are not valid.
@dummdidumm dummdidumm merged commit 722a261 into sveltejs:master Aug 12, 2020
@dummdidumm dummdidumm deleted the blank-if-tag-content branch August 12, 2020 10:34
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