W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2011

[whatwg] About the HTML spec inconsistency in URL APIs' Collect URL Parameters definition

From: Shawn Gong <shawn@mozilla.com>
Date: Thu, 21 Jul 2011 12:31:22 -0700 (PDT)
Message-ID: <1834458172.599023.1311276682070.JavaMail.root@zimbra1.shared.sjc1.mozilla.com>

When collecting URL Parameters, if we have "a&&b", since the parameter between "&&" is empty, we ignore it, and get the parameterNames ["a", "b"]; however, if we have "a&=&b" then we'll get a parameter with empty name and empty value, and have the parameterNames ["a", "", "b"]. The two behaviors are inconsistent. Should we modify the spec to keep the consistency?

Shawn Gong

(Referenced from Adam Barth's document: https://docs.google.com/document/edit?id=1r_VTFKApVOaNIkocrg0z-t7lZgzisTuGTXkdzAk4gLU&hl=en)
Received on Thursday, 21 July 2011 12:31:22 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:34 UTC