-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
</textarea> with the closing angle bracket at a new line gives error #6276
Comments
Yeah it would be nice to match browsers' behavior for parsing the end of textareas. I'm not sure what that is exactly though. |
I always thought that for all browsers it does not matter where the |
@dummdidumm : i confirm that browsers (chrome, safari, Firefox) are handling correctly even if the closing sign After having a closer look it seems that the parser is checking for the exact string svelte/src/compiler/parse/state/tag.ts Line 224 in a1600ff
I did a try using regex test Is it ok to continue with this regex approach or do you suggest something else ? @dummdidumm @Conduitry |
yup i checked on https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-inbody, the end tag allows space, tab, linefeed, formfeed before the |
This parses correctly now in 3.38.3 - https://svelte.dev/repl/027e752c415f4f12895f714232c5a186?version=3.38.3 |
Describe the bug
</textarea>
with the closing angle bracket at a new line gives error.Logs
To Reproduce
Expected behavior
Does not give error.
Stacktraces
(None)
Information about your Svelte project:
Severity
Not much, but it conflicts with my
prettier
configurations sometimes.Additional context
The case with
<textarea>
gives error, but interestingly the case with<div>
does not.EDIT: Got it saved in REPL here.
The text was updated successfully, but these errors were encountered: