W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2008

[whatwg] DOM-related and API-related feedback

From: Adam Barth <whatwg@adambarth.com>
Date: Sun, 28 Dec 2008 09:22:40 -0800
Message-ID: <7789133a0812280922n42a7d54aw83da480c2533dd66@mail.gmail.com>
> On Fri, 13 Jun 2008, Adam Barth wrote:
>> 3) The document's origin and effective script origin become the origin
>> and the effective script origin of the currently executing script.
>> (Note: actually, the origins are aliased, as in the about:blank case, so
>> that changes to one of the document's document.domain property affects
>> the other.)
>
> Does the aliasing happen with all browsers?

Test case: http://www.webblaze.org/tests/alias/

Browsers that alias: Firefox 3, Safari 3.1.2, Chrome.
Browsers that do not alias: Internet Explorer 7, Opera 9.5.2

This looks like a Firefox-ism that I copied into WebKit.  We added
aliasing to WebKit because, without it, we failed a regression test.
I'll investigate whether that test is based on a real web site.  Jonas
has previously said he thinks the aliasing is important for web
compatibility.  Jonas, do you know of actual web sites that will break
if we follow the current HTML 5 text?

Adam
Received on Sunday, 28 December 2008 09:22:40 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:46 UTC