Re: A question about Range#insertNode

On Thu, Jul 9, 2015 at 4:56 PM, Anne van Kesteren <annevk@annevk.nl> wrote:
> On Wed, Jul 8, 2015 at 1:02 PM, Aryeh Gregor <ayg@aryeh.name> wrote:
>> Looks like you're correct, that bit should be removed.  If you update
>> the test to match the new algorithm (assuming I wrote a test for it,
>> I'm pretty sure I did) and it doesn't change which browsers pass, then
>> we could be extra super sure.  :)
>
> It seems there's already quite some divergence between your reference
> implementation and the specification :-/ Though when I removed the
> line about throwing for detached ranges, nothing broke...

I have updated the specification meanwhile, still unsure about what
would have to be changed to the test:

https://github.com/whatwg/dom/commit/4c0fb2a7c2d80d34e931f1ffd9fe85b18ab5a49c


-- 
https://annevankesteren.nl/

Received on Sunday, 12 July 2015 07:19:04 UTC