MCPcopy Create free account
hub / github.com/backnotprop/plannotator / attrValue

Function attrValue

packages/shared/html-assets.ts:170–172  ·  view source on GitHub ↗
(node: HtmlNode, name: string)

Source from the content-addressed store, hash-verified

168}
169
170function attrValue(node: HtmlNode, name: string): string | null {
171 return findAttr(node, name)?.value.trim() ?? null;
172}
173
174function rewriteStyleAttr(node: HtmlNode, assetUrlFor: HtmlAssetUrlMapper): void {
175 const attr = findAttr(node, "style");

Callers 1

isSupportLinkFunction · 0.85

Calls 1

findAttrFunction · 0.85

Tested by

no test coverage detected