Remove server side lower casing warning#21076
Remove server side lower casing warning#21076sebmarkbage wants to merge 1 commit intofacebook:masterfrom
Conversation
|
Comparing: fb8c191...e2130df Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: Expand to show
|
|
I'm confused about CI failure. |
3a8aa44 to
32ce78c
Compare
32ce78c to
e2130df
Compare
|
Another thing this warning did differently was warn for custom elements but the client one doesn't do that. |
|
It's interesting because the runtime behavior is also different since the tag is lowerCased before we compare it to special cases like 'select' where as the client doesn't do that. That's why we have the warning in the first place, other than just consistency, it allows us to not apply special cases for different cases. |
|
Ugh. So there's one place namespace really matters in Fizz. We'd need to know what wrapper to use for segment containers if you suspend inside an SVG tree but the stream is streaming into a HTML root. Neither of these need to know the actual namespace though - unlike the client. Just what wrapper it needs to use. |
|
Abandoning this since I already implemented it in Fizz anyway. Fix for custom-elements is here #21156 |
It's the only thing (outside selected value which has its own complexities with suspense) that's contextual. It's not worth adding a host config at runtime for this. So I'm removing it for parity.
We have this warning on the client. We don't have other warnings like ancestor nesting on the server anyway. We can instead warn for those in the hydration phase if we need to.