<?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>14569</bug_id>
          
          <creation_ts>2011-10-26 22:47:21 +0000</creation_ts>
          <short_desc>URL object should not return DOMTokenList</short_desc>
          <delta_ts>2012-12-21 14:40:34 +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>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://dvcs.w3.org/hg/url/raw-file/tip/Overview.html</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="Erik Arvidsson">erik.arvidsson</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>annevk</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-media</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>public-webapps</cc>
    
    <cc>w3c</cc>
    
    <cc>www-dom</cc>
          
          <qa_contact>sideshowbarker+urlspec</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>59013</commentid>
    <comment_count>0</comment_count>
    <who name="Erik Arvidsson">erik.arvidsson</who>
    <bug_when>2011-10-26 22:47:21 +0000</bug_when>
    <thetext>http://dvcs.w3.org/hg/url/raw-file/tip/Overview.html

  readonly attribute DOMTokenList parameterNames;
  DOMTokenList getParameterAll(DOMString name);

These should both use DOMString[] instead of DOMTokenList.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59027</commentid>
    <comment_count>1</comment_count>
    <who name="Adam Barth">w3c</who>
    <bug_when>2011-10-26 23:54:22 +0000</bug_when>
    <thetext>The URL spec is probably going to wind up in the webapps WG.  That&apos;s probably the right &quot;product&quot; to file these bugs against.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59030</commentid>
    <comment_count>2</comment_count>
    <who name="Erik Arvidsson">erik.arvidsson</who>
    <bug_when>2011-10-26 23:58:14 +0000</bug_when>
    <thetext>There is no good Component for this at the moment so randomly picking one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59057</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-10-27 08:54:50 +0000</bug_when>
    <thetext>Something like DOMTokenList could rid us of getParameter(), appendParameter(), and clearParameter() though...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59061</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-10-27 10:10:05 +0000</bug_when>
    <thetext>Though I guess if it&apos;s a mutable array that goes for arrays too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59062</commentid>
    <comment_count>5</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-10-27 10:13:07 +0000</bug_when>
    <thetext>Oops, ignore comment 3 and comment 4. Somehow forgot about values there. If we want to use a data structure it would have to be DOMStringMap or some such.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59081</commentid>
    <comment_count>6</comment_count>
    <who name="Erik Arvidsson">erik.arvidsson</who>
    <bug_when>2011-10-27 16:45:08 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; Oops, ignore comment 3 and comment 4. Somehow forgot about values there. If we
&gt; want to use a data structure it would have to be DOMStringMap or some such.

The problem is that the parameter names are not unique so a map would not really work either.

var url = new URL(&apos;http://www.example.com/index.cgi?a=A&amp;b=B&amp;a=A2&apos;);
url.parameterNames; // [&apos;a&apos;, &apos;b&apos;, &apos;a&apos;]

I&apos;m suggesting all these arrays would just be snapshots.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59086</commentid>
    <comment_count>7</comment_count>
    <who name="Adam Barth">w3c</who>
    <bug_when>2011-10-27 18:12:14 +0000</bug_when>
    <thetext>Yeah, the intention was for them to be snapshots.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64686</commentid>
    <comment_count>8</comment_count>
    <who name="Erik Arvidsson">erik.arvidsson</who>
    <bug_when>2012-02-28 17:22:43 +0000</bug_when>
    <thetext>What is blocking the spec from being updated?

DOMString[] getParameterAll(DOMString name);</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64807</commentid>
    <comment_count>9</comment_count>
    <who name="Adam Barth">w3c</who>
    <bug_when>2012-03-01 04:24:04 +0000</bug_when>
    <thetext>Fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64817</commentid>
    <comment_count>10</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-03-01 08:52:30 +0000</bug_when>
    <thetext>You &quot;fixed&quot; this by changing Overview.html, rather than fixing Overview.src.html and generating Overview.html.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64819</commentid>
    <comment_count>11</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-03-01 08:53:32 +0000</bug_when>
    <thetext>Oops, missed something there reading the diff. Sorry!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64820</commentid>
    <comment_count>12</comment_count>
    <who name="Adam Barth">w3c</who>
    <bug_when>2012-03-01 08:56:18 +0000</bug_when>
    <thetext>I edited both manually, so I&apos;m sure I screwed it up somehow.  :)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>