-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
preact/debug: Incorrect table warning #4111
Comments
I originally noticed this with a complete table structure, including |
@marvinhagemeister this does not warn for me https://codesandbox.io/s/damp-dream-td65f3?file=/src/index.js |
This vdom structure does result in HTML which doesn't match the vdom and is modified during hydration. See this (admittedly canned) example where there's a flash of styling change when hydration happens: https://codesandbox.io/s/busy-williams-scnwzw?file=/src/index.mjs |
Interesting! Looks like the browser automatically inserts a |
This doesn't throw/log an error, but it should; while the spec technically allows for We should warn here. |
Describe the bug
preact/debug
throws a warning when the code is valid HTML code. That's unexpected.To Reproduce
Expected behavior
No warning, it's a valid HTML structure. Iirc there are some rules regarding
tbody
when it must be present and not. I don't know them at the top of my head, best to check with the spec.The text was updated successfully, but these errors were encountered: