<html>
    <head>
      <base href="https://bugs.webkit.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:achristensen&#64;apple.com" title="Alex Christensen &lt;achristensen&#64;apple.com&gt;"> <span class="fn">Alex Christensen</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Setting url.search=&quot;??&quot; (two questionmarks) has incorrect behavior"
   href="https://bugs.webkit.org/show_bug.cgi?id=170452">bug 170452</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
               &nbsp;
           </td>
           <td>annevk&#64;annevk.nl
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Setting url.search=&quot;??&quot; (two questionmarks) has incorrect behavior"
   href="https://bugs.webkit.org/show_bug.cgi?id=170452#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Setting url.search=&quot;??&quot; (two questionmarks) has incorrect behavior"
   href="https://bugs.webkit.org/show_bug.cgi?id=170452">bug 170452</a>
              from <span class="vcard"><a class="email" href="mailto:achristensen&#64;apple.com" title="Alex Christensen &lt;achristensen&#64;apple.com&gt;"> <span class="fn">Alex Christensen</span></a>
</span></b>
        <pre>We match the behavior of Chromium when setting the query to &quot;??&quot;, and if I interpret <a href="https://url.spec.whatwg.org/#dom-url-search">https://url.spec.whatwg.org/#dom-url-search</a> correctly, then Firefox and the web platform tests are not following the specification:
&quot;Let input be the given value with a single leading U+003F (?) removed, if any.&quot;
I interpret this to mean that if the given value starts with one or more '?' then one will be removed.  Firefox seems to interpret this to mean that the leading '?' is only to be removed if it is followed by a non-question-mark character, which I don't think makes any sense.  I'm interested in Anne's interpretation.

With the setting of the query to &quot;?&quot; I believe Firefox, WebKit, and the specification are &quot;correct&quot; and Chromium needs to change.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>