Re: [whatwg/dom] isEqualNode and <template> (#737)

> Template content is part of serialisation, so it's kinda different to shadow DOM.

So are descendent nodes yet they don't affect equality.

The [cloning step](https://html.spec.whatwg.org/multipage/scripting.html#the-template-element) for the template element says that we don't clone the template content unless *clone children flag* is set so that seems to suggest to me that we currently treat the template content as a part of the broader tree structure than the intrinsic characteristics of a template element.

I'm inclined to say the current behavior of `isEqualNode` is more consistent with the rest of the Web API. It's also going to be very expensive to check the equality of the template content if we wanted to do recursively.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/737#issuecomment-478287102

Received on Saturday, 30 March 2019 20:33:02 UTC