MCPcopy Create free account
hub / github.com/angular/angular / isSsrContentsIntegrity

Function isSsrContentsIntegrity

packages/core/src/hydration/utils.ts:751–757  ·  view source on GitHub ↗
(node: ChildNode | null)

Source from the content-addressed store, hash-verified

749}
750
751function isSsrContentsIntegrity(node: ChildNode | null): boolean {
752 return (
753 !!node &&
754 node.nodeType === Node.COMMENT_NODE &&
755 node.textContent?.trim() === SSR_CONTENT_INTEGRITY_MARKER
756 );
757}
758
759function skipTextNodes(node: ChildNode | null): ChildNode | null {
760 // Ignore whitespace. Before the <body>, we shouldn't find text nodes that aren't whitespace.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected