-
Notifications
You must be signed in to change notification settings - Fork 22
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
Warn when the style
attribute is missing a semicolon ;
#182
Comments
I just compared to web and in Chrome I don't see any support for whitespace deliminator between style rules so I'd like to not support that in ours. But I agree some warning would be nice. @NduatiK I think we'd need to support that in the parser itself as currently I'm just doing |
Let's clarify:
@bcardarella, did I get that right? |
so currently I split the value of the
should be the same as:
and
and
Does that make sense? |
Makes sense. |
are you asking if the following:
where the 2nd rule has no semicolor? |
Yes, should the SHEET sigil produce a warning if the 2nd rule's semicolon is missing? I'd like to know if warnings should always be produced or if it should be configurable. |
That's a good question, are semicolons required for multiline in css or not? I forget what the current state of that is. If it is then we should probably just follow that but it may need to be a v0.4 thing and accept the breaking change |
Going to link this issue liveview-native/liveview-client-swiftui#1421, since they might use the same parser internally. |
A common mistake is writing a
style
attribute with spaces as delimiters instead of semicolons;
:This should log a warning, ideally pointing to the position where the semicolon should be inserted. A message similar to this could be used:
Alternatively, spaces could be allowed as a delimiter as well or instead of semicolons.
The text was updated successfully, but these errors were encountered: