angular/packages/platform-server/test
Andrew Kushnir 5efd4fff57 refactor(core): insert special marker only when text node content is an empty string (#49877)
Empty text nodes are not present in the server-rendered HTML output, thus we inject a special marker
at a text node location to later restore an empty text node at the client. Currently, we treat text nodes with spaces as "empty" as well, however those spaces are present in the HTML and text nodes are created in a browser. Adding extra annotation in this case results in extra text nodes created on the client and may trigger hydration issues. This commit updates the code to avoid treating text nodes with spaces as "empty".

PR Close #49877
2023-04-18 19:04:28 +00:00
..
BUILD.bazel refactor(core): internal tracker of pending tasks during initial rendering (#49576) 2023-03-28 16:19:31 -07:00
hydration_spec.ts refactor(core): insert special marker only when text node content is an empty string (#49877) 2023-04-18 19:04:28 +00:00
integration_spec.ts test: refactor platform-server tests to use async/await (#49855) 2023-04-17 14:07:34 +00:00
transfer_state_spec.ts feat(core): expose makeStateKey, StateKey and TransferState (#49563) 2023-03-29 10:18:02 -07:00