<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>27304</bug_id>
          
          <creation_ts>2014-11-11 18:15:21 +0000</creation_ts>
          <short_desc>Allow &lt;link&gt; in body</short_desc>
          <delta_ts>2014-11-12 19:11:53 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>27303</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ilya Grigorik">igrigorik</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>114809</commentid>
    <comment_count>0</comment_count>
    <who name="Ilya Grigorik">igrigorik</who>
    <bug_when>2014-11-11 18:15:21 +0000</bug_when>
    <thetext>Current spec: &quot;If the rel attribute is used, the element is restricted to the head element.&quot;

http://www.w3.org/TR/html5/document-metadata.html#the-link-element

In practice, developers do not follow above restriction and embed &lt;link&gt;&apos;s in body, and all browsers support this behavior as well. Removing this constraint has multiple benefits: 

1) It allows UA&apos;s to stop treating this as an error condition and instead use position of &lt;link rel=stylesheet&gt; in the document as an optimization hint to improve rendering performance - e.g. content above &lt;link&gt; should not block first paint, which is similar to how blocking scripts behave today. Some browsers already implement this behavior, and some sites rely on this behavior to improve painting performance; Baidu experience shows that this can deliver significant perf improvement. 

2) &lt;link rel=import&gt; is already being used in the wild inside of &lt;body&gt; to import HTML and other content.

3) It makes the spec consistent with what&apos;s actually implemented and deployed in the wild (by UAs and site developers).

whatwg thread with background discussion: http://lists.w3.org/Archives/Public/public-web-perf/2014Oct/0115.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114855</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-11-12 19:11:53 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 27303 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>