<?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>12508</bug_id>
          
          <creation_ts>2011-04-15 18:30:44 +0000</creation_ts>
          <short_desc>Unclear how to handle &lt;link href&gt; when the href value is only whitespace</short_desc>
          <delta_ts>2011-08-04 05:04:28 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>LC1 HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mats Palmgren">matspal</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ayg</cc>
    
    <cc>brunoaiss</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>47483</commentid>
    <comment_count>0</comment_count>
    <who name="Mats Palmgren">matspal</who>
    <bug_when>2011-04-15 18:30:44 +0000</bug_when>
    <thetext>The text &lt;link href&gt; says it &quot;must contain a valid non-empty URL potentially surrounded by spaces.&quot;
Further down in the section on how to &quot;obtain the resource&quot; the first
item in the list says &quot;1. If the href attribute&apos;s value is the empty string, then abort these steps.&quot;
http://www.whatwg.org/specs/web-apps/current-work/#attr-link-href

It&apos;s not clear when/if the space should be removed from the @href value.
Perhaps you can make the space removal explicit, for example by adding a new
first step in the process to &quot;obtain the resource&quot;, like so:

1. Remove leading and trailing space from the href attribute&apos;s value
2. If the href attribute&apos;s value is the empty string, then abort these steps.
3. ...



(Mozilla bug:  https://bugzilla.mozilla.org/show_bug.cgi?id=649134)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47484</commentid>
    <comment_count>1</comment_count>
    <who name="Mats Palmgren">matspal</who>
    <bug_when>2011-04-15 18:49:36 +0000</bug_when>
    <thetext>Additional note:
HTTP/1.1 doesn&apos;t include \f in space, unlike HTML5, so it&apos;s unclear how
Link: &lt;\014&gt;; rel=&quot;stylesheet&quot;
should be processed for HTML documents.
https://bugzilla.mozilla.org/show_bug.cgi?id=649134#c11</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50272</commentid>
    <comment_count>2</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-06-24 19:00:54 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are
satisfied with this response, please change the state of this bug to CLOSED. If
you have additional information and would like the Editor to reconsider, please
reopen this bug. If you would like to escalate the issue to the full HTML
Working Group, please add the TrackerRequest keyword to this bug, and suggest
title and text for the Tracker Issue; or you may create a Tracker Issue
yourself, if you are able to do so. For more details, see this document:

   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: &quot;must contain a valid non-empty URL potentially surrounded by spaces&quot; is an authoring requirement, not an implementation requirement.  It only affects whether the page is valid, and has no bearing on how browsers should process the page:

&quot;&quot;&quot;
Note: There is no implied relationship between document conformance requirements and implementation conformance requirements. User agents are not free to handle non-conformant documents as they please; the processing model described in this specification applies to implementations regardless of the conformity of the input documents.
&quot;&quot;&quot;
http://www.whatwg.org/specs/web-apps/current-work/multipage/infrastructure.html#conformance-classes

If you follow the &quot;obtain the resource&quot; algorithm exactly as specified, without making any assumptions based on authoring conformance criteria or other considerations, it&apos;s clear that you should only abort if the href is an empty string.  Nothing says you should abort if the href consists of one or more space characters.

Please reopen if you either think the spec should change to also include whitespace-only href&apos;s, or if you think it should be further clarified somehow to say that it really only means the empty string.  In general, it&apos;s hard to clarify this sort of thing, where someone is reading between the lines of algorithms instead of taking them completely literally.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52821</commentid>
    <comment_count>3</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:04:28 +0000</bug_when>
    <thetext>mass-moved component to LC1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>