HTML-Inspect
view release on metacpan or search on metacpan
t/11_collect_links.t view on Meta::CPAN
###
### collectLinks
###
my $links = $inspector->collectLinks;
#note explain $links;
is_deeply $links,
{
'icon' => [
{'crossorigin' => 'use-credentials', 'href' => 'https://resources.whatwg.org/logo.svg'},
{'href' => 'https://resources.whatwg.org/logo.svg'}
],
'stylesheet' => [
{'crossorigin' => 'anonymous', 'href' => 'https://resources.whatwg.org/spec.css'},
{'crossorigin' => '', 'href' => 'https://resources.whatwg.org/standard.css'},
{'href' => 'https://resources.whatwg.org/standard-shared-with-dev.css'},
{'href' => 'https://resources.whatwg.org/standard-shared-with-dev.css'},
{'crossorigin' => '', 'href' => 'https://html.spec.whatwg.org/styles.css'}
]
},
t/data/links.html view on Meta::CPAN
<base hRef="https://html.spec.whatwg.org/multipage/">
<script src=/link-fixup.js defer=""></script>
<META CHARSET=UTF-8>
<meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name=viewport>
<title>HTML Standard</title>
<meta content=#3c790a name=theme-color>
<link rel=stylesheet href=https://resources.whatwg.org/spec.css crossorigin="anonymous">
<link rel=stylesheet href=https://resources.whatwg.org/standard.css crossorigin="">
<link rel=stylesheet href=https://resources.whatwg.org/standard-shared-with-dev.css>
<link rEl=stylesheet href=https://resources.whatwg.org/standard-shared-with-dev.css>
<link REL=icon href=https://resources.whatwg.org/logo.svg crossorigin="use-credentials">
<link rel=icon href=https://resources.whatwg.org/logo.svg>
<link rel=stylesheet href=/styles.css crossorigin="">
<script>
function toggleStatus(div) {
div.parentNode.classList.toggle('wrapped');
}
function setLinkFragment(link) {
link.hash = location.hash;
}
</script>
( run in 0.227 second using v1.01-cache-2.11-cpan-4d50c553e7e )