MCPcopy Index your code
hub / github.com/angular/angular / clearDocument

Function clearDocument

packages/platform-server/test/dom_utils.ts:179–182  ·  view source on GitHub ↗
(doc: Document)

Source from the content-addressed store, hash-verified

177 * Clears document contents to have a clean state for the next test.
178 */
179export function clearDocument(doc: Document) {
180 doc.body.textContent = '';
181 doc.body.removeAttribute(CLIENT_RENDER_MODE_FLAG);
182}

Callers 1

Calls 1

removeAttributeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…