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

[whatwg] When initializing a JS URL object, do we handle the case of 0 argument?

From: Shawn Gong <shawn@mozilla.com>
Date: Mon, 25 Jul 2011 16:00:12 -0700 (PDT)
Message-ID: <1911155557.638885.1311634812090.JavaMail.root@zimbra1.shared.sjc1.mozilla.com>
(Referenced from Adam Barth's document: https://docs.google.com/document/edit?id=1r_VTFKApVOaNIkocrg0z-t7lZgzisTuGTXkdzAk4gLU&hl=en)

The incoming arguments plainURL and baseURL are optional. The question is, when there is no argument provided, do we return an error or treat it normally, then assign the URL later? If so, which interface do we use to assign the URL? href?

Shawn Gong
Received on Monday, 25 July 2011 16:00:12 UTC

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