Bugzilla – Bug 20378
Need to define base URI for the document created via DOMParser
Last modified: 2012-12-14 10:58:10 UTC
This is needed by various DOM methods.
Note that in Gecko this is the base URI of the document of the current window of the browsing context of the window the DOMParser is created from or something like that. No idea what other UAs do.
The base URL would not be simply the document's URL? (The latter I think should be about:blank.)
It could be, sure. Just needs to be defined.
Ah right, so for Gecko the document's URL is indeed the "page URL". Other browsers use null, which I think they should change to about:blank so we can make document.documentURI and document.URL always be a string.
I can change the document to remove the open issue and just say that URL should be about:blank.