MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / extractStyles

Function extractStyles

packages/sdk/src/document.ts:168–171  ·  view source on GitHub ↗
(doc: Document)

Source from the content-addressed store, hash-verified

166}
167
168function extractStyles(doc: Document): string | null {
169 const styleEl = doc.querySelector("style");
170 return styleEl ? styleEl.textContent : null;
171}
172
173// Root resolution delegates to the engine's findRoot so dimension extraction
174// and mutations agree on which element is the composition root.

Callers 1

buildDocumentFunction · 0.85

Calls 1

querySelectorMethod · 0.65

Tested by

no test coverage detected