This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 28796 - Feature testing for <link rel>
Summary: Feature testing for <link rel>
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard:
Keywords:
Depends on: 28616 29061
Blocks:
  Show dependency treegraph
 
Reported: 2015-06-11 16:09 UTC by Simon Pieters
Modified: 2016-01-24 05:46 UTC (History)
5 users (show)

See Also:


Attachments

Description Simon Pieters 2015-06-11 16:09:25 UTC
+++ This bug was initially created as a clone of Bug #28616 +++

We need a way to test support for various <link rel> features - e.g. prerender, prefetch, preload, preconnect.

Related threads:
- https://github.com/w3c/preload/issues/7
- https://lists.w3.org/Archives/Public/public-whatwg-archive/2015Apr/0000.html

Simon's proposal from the mailing list:

> For <link rel>, we could solve the feature-testing problem by normalizing the case for supported keywords but not unsupported keywords, so you can check with .rel or .relList:
>
> function preloadSupported() {
>    var link = document.createElement('link');
>    link.rel = 'PRELOAD';
>   return link.rel == 'preload';
> }
Comment 1 Domenic Denicola 2016-01-24 05:46:32 UTC
This has been taken care of by https://github.com/whatwg/html/pull/395 and the related DOM changes!