133 lines
11 KiB
HTML
133 lines
11 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>Link</title>
|
|
|
|
<!-- Plain link tag -->
|
|
<link href="/site.css" rel="stylesheet" title="<the title>" />
|
|
|
|
<!-- Globbed link tag with existing file -->
|
|
<link rel="stylesheet" title="<the title>" href="/site.css" />
|
|
|
|
<!-- Globbed link tag with comma separated pattern -->
|
|
<link rel="stylesheet" title="<the title" href="/site.css" /><link rel="stylesheet" title="<the title" href="/sub/site2.css" /><link rel="stylesheet" title="<the title" href="/sub/site3.css" /><link rel="stylesheet" title="<the title" href="/sub/site3.min.css" />
|
|
|
|
<!-- Globbed link tag with existing file and exclude -->
|
|
<link rel="stylesheet" title=""the" title" href="/site.css" /><link rel="stylesheet" title=""the" title" href="/sub/site2.css" />
|
|
|
|
<!-- Globbed link tag missing include -->
|
|
<link rel="stylesheet" />
|
|
|
|
<!-- Globbed link tag missing include but with static href -->
|
|
<link rel="stylesheet" href="/site.css" />
|
|
|
|
<!-- Globbed link tag with missing file -->
|
|
|
|
|
|
<!-- Globbed link tag with file outside of webroot -->
|
|
|
|
|
|
<!-- Globbed link tag with file outside of webroot -->
|
|
|
|
|
|
<!-- Globbed link tag with existing file and static href -->
|
|
<link rel="stylesheet" href="/site.css" /><link rel="stylesheet" href="/sub/site2.css" />
|
|
|
|
<!-- Globbed link tag with existing file and static href should dedupe -->
|
|
<link rel="stylesheet" href="/site.css" />
|
|
|
|
<!-- Fallback to static href -->
|
|
<link rel="stylesheet" data-extra="test" title=""the" title" href="/site.min.css?a=b&c=d" />
|
|
<meta name="x-stylesheet-fallback-test" class="hidden" /><script>!function(a,b,c){var d,e=document,f=e.getElementsByTagName("SCRIPT"),g=f[f.length-1].previousElementSibling,h=e.defaultView&&e.defaultView.getComputedStyle?e.defaultView.getComputedStyle(g):g.currentStyle;if(h&&h[a]!==b)for(d=0;d<c.length;d++)e.write('<link rel="stylesheet" href="'+c[d]+'"/>')}("visibility","hidden",["\/site.css?a=b\u0026c=d"]);</script>
|
|
|
|
<!-- Fallback from globbed href to static href -->
|
|
|
|
<meta name="x-stylesheet-fallback-test" class="hidden" /><script>!function(a,b,c){var d,e=document,f=e.getElementsByTagName("SCRIPT"),g=f[f.length-1].previousElementSibling,h=e.defaultView&&e.defaultView.getComputedStyle?e.defaultView.getComputedStyle(g):g.currentStyle;if(h&&h[a]!==b)for(d=0;d<c.length;d++)e.write('<link rel="stylesheet" href="'+c[d]+'"/>')}("visibility","hidden",["\/site.css"]);</script>
|
|
|
|
<!-- Fallback from globbed href with exclude to static href -->
|
|
|
|
<meta name="x-stylesheet-fallback-test" class="hidden" /><script>!function(a,b,c){var d,e=document,f=e.getElementsByTagName("SCRIPT"),g=f[f.length-1].previousElementSibling,h=e.defaultView&&e.defaultView.getComputedStyle?e.defaultView.getComputedStyle(g):g.currentStyle;if(h&&h[a]!==b)for(d=0;d<c.length;d++)e.write('<link rel="stylesheet" href="'+c[d]+'"/>')}("visibility","hidden",["\/site.css"]);</script>
|
|
|
|
<!-- Fallback from globbed and static href to static href -->
|
|
<link rel="stylesheet" data-extra="test" href="site.min.css" /><link rel="stylesheet" data-extra="test" href="/site.css" />
|
|
<meta name="x-stylesheet-fallback-test" class="hidden" /><script>!function(a,b,c){var d,e=document,f=e.getElementsByTagName("SCRIPT"),g=f[f.length-1].previousElementSibling,h=e.defaultView&&e.defaultView.getComputedStyle?e.defaultView.getComputedStyle(g):g.currentStyle;if(h&&h[a]!==b)for(d=0;d<c.length;d++)e.write('<link rel="stylesheet" href="'+c[d]+'"/>')}("visibility","hidden",["\/site.css"]);</script>
|
|
|
|
<!-- Fallback from globbed and static href with exclude to static href -->
|
|
<link rel="stylesheet" data-extra="test" href="site.min.css" />
|
|
<meta name="x-stylesheet-fallback-test" class="hidden" /><script>!function(a,b,c){var d,e=document,f=e.getElementsByTagName("SCRIPT"),g=f[f.length-1].previousElementSibling,h=e.defaultView&&e.defaultView.getComputedStyle?e.defaultView.getComputedStyle(g):g.currentStyle;if(h&&h[a]!==b)for(d=0;d<c.length;d++)e.write('<link rel="stylesheet" href="'+c[d]+'"/>')}("visibility","hidden",["\/site.css"]);</script>
|
|
|
|
<!-- Fallback to static href with no primary href -->
|
|
<link rel="stylesheet" data-extra="test" />
|
|
<meta name="x-stylesheet-fallback-test" class="hidden" /><script>!function(a,b,c){var d,e=document,f=e.getElementsByTagName("SCRIPT"),g=f[f.length-1].previousElementSibling,h=e.defaultView&&e.defaultView.getComputedStyle?e.defaultView.getComputedStyle(g):g.currentStyle;if(h&&h[a]!==b)for(d=0;d<c.length;d++)e.write('<link rel="stylesheet" href="'+c[d]+'"/>')}("visibility","hidden",["\/site.css"]);</script>
|
|
|
|
<!-- Fallback to globbed href -->
|
|
<link rel="stylesheet" data-extra="test" href="/site.min.css" />
|
|
<meta name="x-stylesheet-fallback-test" class="hidden" /><script>!function(a,b,c){var d,e=document,f=e.getElementsByTagName("SCRIPT"),g=f[f.length-1].previousElementSibling,h=e.defaultView&&e.defaultView.getComputedStyle?e.defaultView.getComputedStyle(g):g.currentStyle;if(h&&h[a]!==b)for(d=0;d<c.length;d++)e.write('<link rel="stylesheet" href="'+c[d]+'"/>')}("visibility","hidden",["\/site.css"]);</script>
|
|
|
|
<!-- Fallback to static and globbed href -->
|
|
<link rel="stylesheet" data-extra="test" href="/site.min.css" />
|
|
<meta name="x-stylesheet-fallback-test" class="hidden" /><script>!function(a,b,c){var d,e=document,f=e.getElementsByTagName("SCRIPT"),g=f[f.length-1].previousElementSibling,h=e.defaultView&&e.defaultView.getComputedStyle?e.defaultView.getComputedStyle(g):g.currentStyle;if(h&&h[a]!==b)for(d=0;d<c.length;d++)e.write('<link rel="stylesheet" href="'+c[d]+'"/>')}("visibility","hidden",["\/site.css","\/sub\/site2.css"]);</script>
|
|
|
|
<!-- Fallback to static and globbed href should dedupe -->
|
|
<link rel="stylesheet" data-extra="test" href="/site.min.css" />
|
|
<meta name="x-stylesheet-fallback-test" class="hidden" /><script>!function(a,b,c){var d,e=document,f=e.getElementsByTagName("SCRIPT"),g=f[f.length-1].previousElementSibling,h=e.defaultView&&e.defaultView.getComputedStyle?e.defaultView.getComputedStyle(g):g.currentStyle;if(h&&h[a]!==b)for(d=0;d<c.length;d++)e.write('<link rel="stylesheet" href="'+c[d]+'"/>')}("visibility","hidden",["\/site.css"]);</script>
|
|
|
|
<!-- Fallback to static and globbed href with exclude -->
|
|
<link rel="stylesheet" data-extra="test" href="/site.min.css" />
|
|
<meta name="x-stylesheet-fallback-test" class="hidden" /><script>!function(a,b,c){var d,e=document,f=e.getElementsByTagName("SCRIPT"),g=f[f.length-1].previousElementSibling,h=e.defaultView&&e.defaultView.getComputedStyle?e.defaultView.getComputedStyle(g):g.currentStyle;if(h&&h[a]!==b)for(d=0;d<c.length;d++)e.write('<link rel="stylesheet" href="'+c[d]+'"/>')}("visibility","hidden",["\/site.css","\/sub\/site2.css"]);</script>
|
|
|
|
<!-- Fallback from globbed href to glbobed href -->
|
|
|
|
<meta name="x-stylesheet-fallback-test" class="hidden" /><script>!function(a,b,c){var d,e=document,f=e.getElementsByTagName("SCRIPT"),g=f[f.length-1].previousElementSibling,h=e.defaultView&&e.defaultView.getComputedStyle?e.defaultView.getComputedStyle(g):g.currentStyle;if(h&&h[a]!==b)for(d=0;d<c.length;d++)e.write('<link rel="stylesheet" href="'+c[d]+'"/>')}("visibility","hidden",["\/site.css"]);</script>
|
|
|
|
<!-- Fallback from globbed href with exclude to globbed href -->
|
|
|
|
<meta name="x-stylesheet-fallback-test" class="hidden" /><script>!function(a,b,c){var d,e=document,f=e.getElementsByTagName("SCRIPT"),g=f[f.length-1].previousElementSibling,h=e.defaultView&&e.defaultView.getComputedStyle?e.defaultView.getComputedStyle(g):g.currentStyle;if(h&&h[a]!==b)for(d=0;d<c.length;d++)e.write('<link rel="stylesheet" href="'+c[d]+'"/>')}("visibility","hidden",["\/site.css"]);</script>
|
|
|
|
<!-- Fallback from globbed and static href to globbed href -->
|
|
<link rel="stylesheet" data-extra="test" href="site.min.css" /><link rel="stylesheet" data-extra="test" href="/site.css" />
|
|
<meta name="x-stylesheet-fallback-test" class="hidden" /><script>!function(a,b,c){var d,e=document,f=e.getElementsByTagName("SCRIPT"),g=f[f.length-1].previousElementSibling,h=e.defaultView&&e.defaultView.getComputedStyle?e.defaultView.getComputedStyle(g):g.currentStyle;if(h&&h[a]!==b)for(d=0;d<c.length;d++)e.write('<link rel="stylesheet" href="'+c[d]+'"/>')}("visibility","hidden",["\/site.css"]);</script>
|
|
|
|
<!-- Fallback from globbed and static href with exclude to globbed href -->
|
|
<link rel="stylesheet" data-extra="test" href="site.min.css" />
|
|
<meta name="x-stylesheet-fallback-test" class="hidden" /><script>!function(a,b,c){var d,e=document,f=e.getElementsByTagName("SCRIPT"),g=f[f.length-1].previousElementSibling,h=e.defaultView&&e.defaultView.getComputedStyle?e.defaultView.getComputedStyle(g):g.currentStyle;if(h&&h[a]!==b)for(d=0;d<c.length;d++)e.write('<link rel="stylesheet" href="'+c[d]+'"/>')}("visibility","hidden",["\/site.css"]);</script>
|
|
|
|
<!-- Kitchen sink, all the attributes -->
|
|
<link rel="stylesheet" data-extra="test" href="site.min.css" />
|
|
<meta name="x-stylesheet-fallback-test" class="hidden" /><script>!function(a,b,c){var d,e=document,f=e.getElementsByTagName("SCRIPT"),g=f[f.length-1].previousElementSibling,h=e.defaultView&&e.defaultView.getComputedStyle?e.defaultView.getComputedStyle(g):g.currentStyle;if(h&&h[a]!==b)for(d=0;d<c.length;d++)e.write('<link rel="stylesheet" href="'+c[d]+'"/>')}("visibility","hidden",["\/site.css","\/sub\/site2.css"]);</script>
|
|
|
|
<!-- Fallback to globbed href that doesn't exist -->
|
|
<link rel="stylesheet" data-extra="test" href="/site.min.css" />
|
|
|
|
<!-- Fallback to globbed href outside webroot -->
|
|
<link rel="stylesheet" data-extra="test" href="/site.min.css" />
|
|
|
|
<!-- Fallback with missing attribute -->
|
|
<link rel="stylesheet" data-extra="test" href="/site.min.css" />
|
|
|
|
<!-- Fallback with missing attribute -->
|
|
<link rel="stylesheet" data-extra="test" href="/site.min.css" />
|
|
|
|
<!-- Fallback with missing attribute -->
|
|
<link rel="stylesheet" data-extra="test" href="/site.min.css" />
|
|
|
|
<!-- Plain link tag with file version -->
|
|
<link rel="stylesheet" href="/site.css?v=XY7YsMemPf8AGU4SIX9ED9eOjK1LOQWu2dmCNmh-pQc" />
|
|
|
|
<!-- Globbed link tag with existing file and file version -->
|
|
<link rel="stylesheet" href="/site.css?v=XY7YsMemPf8AGU4SIX9ED9eOjK1LOQWu2dmCNmh-pQc" />
|
|
|
|
<!-- Fallback with file version -->
|
|
<link rel="stylesheet" data-extra="test" href="/site.min.css" />
|
|
<meta name="x-stylesheet-fallback-test" class="hidden" /><script>!function(a,b,c){var d,e=document,f=e.getElementsByTagName("SCRIPT"),g=f[f.length-1].previousElementSibling,h=e.defaultView&&e.defaultView.getComputedStyle?e.defaultView.getComputedStyle(g):g.currentStyle;if(h&&h[a]!==b)for(d=0;d<c.length;d++)e.write('<link rel="stylesheet" href="'+c[d]+'"/>')}("visibility","hidden",["\/site.css?v=XY7YsMemPf8AGU4SIX9ED9eOjK1LOQWu2dmCNmh-pQc"]);</script>
|
|
|
|
<!-- Globbed link tag with existing file, static href and file version -->
|
|
<link rel="stylesheet" href="/site.css?v=XY7YsMemPf8AGU4SIX9ED9eOjK1LOQWu2dmCNmh-pQc" /><link rel="stylesheet" href="/sub/site2.css?v=30cxPex0tA9xEatW7f1Qhnn8tVLAHgE6xwIZhESq0y0" /><link rel="stylesheet" href="/sub/site3.css?v=fSxxOr1Q4Dq2uPuzlju5UYGuK0SKABI-ghvaIGEsZDc" /><link rel="stylesheet" href="/sub/site3.min.css?v=s8JMmAZxBn0dzuhRtQ0wgOvNBK4XRJRWEC2wfzsVF9M" />
|
|
</head>
|
|
<body>
|
|
|
|
<h2>Link Tag Helper Test</h2>
|
|
|
|
</body>
|
|
</html> |