<?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>12384</bug_id>
          
          <creation_ts>2011-03-27 11:38:54 +0000</creation_ts>
          <short_desc>Validator rejects a link href with an ampersand in the query string</short_desc>
          <delta_ts>2015-08-23 07:42:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML Checker</product>
          <component>General</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>REOPENED</bug_status>
          <resolution></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="Rob Fletcher">robert.w.fletcher</reporter>
          <assigned_to name="Michael[tm] Smith">mike+validator</assigned_to>
          <cc>elimerl</cc>
    
    <cc>jukka.k.korpela</cc>
    
    <cc>julian.reschke</cc>
    
    <cc>mike</cc>
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>46999</commentid>
    <comment_count>0</comment_count>
    <who name="Rob Fletcher">robert.w.fletcher</who>
    <bug_when>2011-03-27 11:38:54 +0000</bug_when>
    <thetext>If a document has a link element in the head with a query string the validator will reject it if the query string contains &apos;&amp;&apos;. For example:

&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;/css/main.css?_debugResources=y&amp;n=1301223807152&quot;&gt;

When I validate a document containing this I get: &quot;&amp; did not start a character reference. (&amp; probably should have been escaped as &amp;amp;.)&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55703</commentid>
    <comment_count>1</comment_count>
    <who name="Etienne Miret">elimerl</who>
    <bug_when>2011-08-23 18:28:45 +0000</bug_when>
    <thetext>This is the correct behavior. Literal &apos;&amp;&apos; must be escaped as &apos;&amp;amp;&apos; EVEN INSIDE URLS.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108216</commentid>
    <comment_count>2</comment_count>
    <who name="Jukka K. Korpela">jukka.k.korpela</who>
    <bug_when>2014-06-23 12:48:19 +0000</bug_when>
    <thetext>In HTML5, when HTML syntax is used, the construct is valid, because the syntax rules forbid only “ambiguous ampersands”:
http://www.w3.org/TR/html5/syntax.html#attributes-0

The ampersand is not ambiguous in this case, or in other common cases where a query part of a URL contains fields separated by ampersands. An “ambiguous ampersand” is by definition “a U+0026 AMPERSAND character (&amp;) that is followed by one or more alphanumeric ASCII characters, followed by a &quot;;&quot; (U+003B) character, where these characters do not match any of the names given in the named character references section”. There is no semicolon here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122731</commentid>
    <comment_count>3</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2015-08-23 07:42:10 +0000</bug_when>
    <thetext>known issue</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>