W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2010

Re: change dom3 core to not throw WRONG_DOCUMENT_ERR

From: Joćo Eiras <joao.eiras@gmail.com>
Date: Tue, 31 Aug 2010 23:58:19 +0100
To: www-dom@w3.org
Message-ID: <op.vibrfhl5jz3wb9@coruscant>
On , Anne van Kesteren <annevk@opera.com> wrote:

> On Mon, 30 Aug 2010 21:15:04 +0200, Ojan Vafai <ojan@chromium.org> wrote:
>> WebKit is changing to match Gecko and not throw WRONG_DOCUMENT_ERR in a
>> number of cases.
>>
>> https://bugs.webkit.org/show_bug.cgi?id=19524
>>
>> Is there an editor for http://www.w3.org/TR/DOM-Level-3-Core/? These
>> cross-document restrictions cause an unnecessary burden on web developers
>> and soon WebKit and Gecko will not be firing them. Is there any
>> possibility
>> of changing the spec to match?
>
> There's: http://simon.html5.org/specs/web-dom-core
>
> I have a vague plan of working on it once the CSS Value API in CSSOM is
> specified, but it depends on how much time everything else leaves me.
>

The spec has always enforced WRONG_DOCUMENT_ERR, but Mozilla has always had the bug. Hence Opera was forced to implicitly do adoptNode although always remarked as a temp solution while Mozilla did not fix their issue.

Although I would personally agree that firing the exception is better from a strict programming point of view, web compat will probably require the implicitly adoptNode forever.
Received on Tuesday, 31 August 2010 22:58:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:05 GMT