Report whether verified napplet HTML declares a dns-prefetch, preconnect or prerender link. Parses with the
host's DOMParser when present (scripting is off there, so <noscript> content counts too), else applies a
conservative lexical check.
Parameters
html: string
Already-verified napplet artifact HTML
Returns boolean
true if a hint link is present and the bytes must be rejected
Example
if (nappletMarkupHasResourceHint(verifiedHtml)) thrownewError('napplet declares a resource hint');
Report whether verified napplet HTML declares a
dns-prefetch,preconnectorprerenderlink. Parses with the host'sDOMParserwhen present (scripting is off there, so<noscript>content counts too), else applies a conservative lexical check.