<?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>27383</bug_id>
          
          <creation_ts>2014-11-20 19:06:20 +0000</creation_ts>
          <short_desc>Incorrect link for &quot;encode&quot; reference since Bikeshed conversion</short_desc>
          <delta_ts>2014-12-06 12:17:05 +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>URL</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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="Simon Sapin">simon.sapin</reporter>
          <assigned_to name="Sam Ruby">rubys</assigned_to>
          <cc>annevk</cc>
    
    <cc>mike</cc>
    
    <cc>rubys</cc>
          
          <qa_contact>sideshowbarker+urlspec</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>115253</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Sapin">simon.sapin</who>
    <bug_when>2014-11-20 19:06:20 +0000</bug_when>
    <thetext>In the application/x-www-form-urlencoded serializer:

&gt; Replace outputPair&apos;s name and value with the result of running encode on them using encoding override, respectively.

&quot;encode&quot; incorrectly links to https://encoding.spec.whatwg.org/#encoding instead of https://encoding.spec.whatwg.org/#encode like it did before the conversion to Bikeshed.

The corresponding source in url.bs is just &lt;a&gt;encode&lt;/a&gt;, so the issue is probably in the cross-reference data that Bikeshed uses.

Compare a snapshot of current master:
https://rawgit.com/whatwg/url/898cc941ed34996cd504bd345635d73b3de666a1/url.html#concept-urlencoded-serializer

And a snapshot of a recent commit, before conversion to Bikeshed:
https://rawgit.com/whatwg/url/f765c1ad6bf6e339f5ccca0476ea6ef1c1ff51cf/url.html#concept-urlencoded-serializer</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115679</commentid>
    <comment_count>1</comment_count>
    <who name="Sam Ruby">rubys</who>
    <bug_when>2014-11-29 00:54:33 +0000</bug_when>
    <thetext>Fixed https://github.com/whatwg/url/commit/322212d78755206181ae1de7e4ec626d0a06a46f</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115685</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-11-29 15:25:17 +0000</bug_when>
    <thetext>That first change is wrong. It should link to #encode, that&apos;s why it has title=encode.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115688</commentid>
    <comment_count>3</comment_count>
    <who name="Sam Ruby">rubys</who>
    <bug_when>2014-11-29 15:53:02 +0000</bug_when>
    <thetext>title is not sufficient for bikeshed.

Refixed: https://github.com/whatwg/url/commit/3d97d99a941ab5f3a2b78ba739078553cb3cd205</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115689</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-11-29 15:55:50 +0000</bug_when>
    <thetext>It used to be sufficient in Anolis. So we may want to audit the specification since there could be many similar regressions if they are indeed not the same.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115692</commentid>
    <comment_count>5</comment_count>
    <who name="Sam Ruby">rubys</who>
    <bug_when>2014-11-29 16:22:06 +0000</bug_when>
    <thetext>Either I haven&apos;t found it, or the documentation from bikeshed isn&apos;t clear, but from I have gathered:

*) definitions are classified based on type (this part is clear in the documentation)

*) if type is not specified, bikeshed will essentially guess (how this guessing is done isn&apos;t precisely spelled out)

*) for definitions of type &apos;dfn&apos; (the default), bikeshed will match text even if there are differences in case, or word endings (for example -s, -ing, etc.).

In this case, encode is a verb, and encoding is a noun.  To fix this but, I&apos;ve defined encode as a &apos;function&apos;, and left encoding as a &apos;dfn&apos;.

Hopefully this will help those who are looking for other cases where links need to be updated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115981</commentid>
    <comment_count>6</comment_count>
    <who name="Sam Ruby">rubys</who>
    <bug_when>2014-12-06 12:17:05 +0000</bug_when>
    <thetext>I believe it is correct now.  Please reopen if not.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>