MCPcopy Index your code
hub / github.com/danmactough/node-feedparser / resolveHtmlAttributeValue

Function resolveHtmlAttributeValue

lib/utils.js:107–112  ·  view source on GitHub ↗
(baseUrl, name, value)

Source from the content-addressed store, hash-verified

105}
106
107function resolveHtmlAttributeValue (baseUrl, name, value) {
108 var attrName = name.toLowerCase();
109 if (attrName === 'srcset') return resolveSrcset(baseUrl, value);
110 if (HTML_URI_ATTRS.has(attrName)) return resolve(baseUrl, value);
111 return value;
112}
113
114/*
115 * Check whether a given uri is an absolute URL

Callers 2

resolveLevelFunction · 0.85
rewriteHtmlTagUrisFunction · 0.85

Calls 2

resolveSrcsetFunction · 0.85
resolveFunction · 0.85

Tested by

no test coverage detected