W3C home > Mailing lists > Public > public-iri@w3.org > May 2011

Re: Non-hierarchical base URLs (was Re: draft-abarth-url-01 uploaded)

From: Adam Barth <ietf@adambarth.com>
Date: Tue, 3 May 2011 10:40:43 -0700
Message-ID: <BANLkTimXzk_L0SyBfetsH4WS68zFiqY0vg@mail.gmail.com>
To: Julian Reschke <julian.reschke@gmx.de>
Cc: Boris Zbarsky <bzbarsky@mit.edu>, public-iri@w3.org
On Tue, May 3, 2011 at 9:11 AM, Julian Reschke <julian.reschke@gmx.de> wrote:
> On 03.05.2011 17:58, Boris Zbarsky wrote:
>> On 5/3/11 4:50 AM, Julian Reschke wrote:
>>>> <iframe id=foo src="about://blank" onload="test()"></iframe>
>>>> <script>
>>>> var doc = document.getElementById("foo").contentDocument;
>>>> var anchor = doc.createElement("a");
>>>> anchor.setAttribute("href", "foo.html")
>>>> doc.body.appendChild(anchor);
>>>> alert(anchor.href);
>>>> </script>
>>>> ...
>>>
>>> FF4: resolves against the document's URI (not about://blank)
>>
>> In general, for iframes containing about:blank documents we use the
>> "originating" uri of the about:blank as the base URI. We found that this
>> was needed for web compat in at least some cases.
>
> Ack, and thanks for the explanation.
>
> So many of these edge cases really aren't about URI/IRI parsing resolving,
> but about HTML, and *selecting* the base URI/IRI. We shouldn't confuse those
> questions.

Correct.  HTML specifies the former and we're to specify the latter.
It's important to understand how both work to construct meaningful
test cases.

Adam
Received on Tuesday, 3 May 2011 17:41:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 30 April 2012 19:52:01 GMT