-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Incorrect error output for mistakes in HTML fragments #1444
Comments
My guess is that this happens because something in here says "I'll handle this one" from their yew/yew-macro/src/html_tree/mod.rs Lines 41 to 72 in 9aff041
|
Also, while it's only bad for compilation times, due to all the peeking, this code effectively parses everything twice, doesn't it? Plus it may also partially parse things that aren't even the thing in need of parsing. |
You're right, unfortunately Yew performs a lot of duplicate parsing. This is something I've thought about a lot and I think our best bet is to get rid of the |
Problem
The macro parser doesn't correctly handle errors in HTML fragments.
Steps To Reproduce
Steps to reproduce the behavior:
html!
invocation:Expected behavior
If you look at the code in
yew-macro\src\html_tree\html_list.rs
,yew/yew-macro/src/html_tree/html_list.rs
Lines 148 to 156 in 9aff041
the intended error message here is clearly meant to be
Environment:
Questionnaire
The text was updated successfully, but these errors were encountered: