Re: [whatwg/dom] Should `Attr.isConnected` return `false` if element is connected? (Issue #1448)

caugner left a comment (whatwg/dom#1448)

I realize this is expected, and sufficiently specified:

- > A [node](https://dom.spec.whatwg.org/#concept-node) is connected if its [shadow-including root](https://dom.spec.whatwg.org/#concept-shadow-including-root) is a [document](https://dom.spec.whatwg.org/#concept-document).
- > The shadow-including root of an object is its [root](https://dom.spec.whatwg.org/#concept-tree-root)’s [host](https://dom.spec.whatwg.org/#concept-documentfragment-host)’s [shadow-including root](https://dom.spec.whatwg.org/#concept-shadow-including-root), if the object’s [root](https://dom.spec.whatwg.org/#concept-tree-root) is a [shadow root](https://dom.spec.whatwg.org/#concept-shadow-root); otherwise its [root](https://dom.spec.whatwg.org/#concept-tree-root).
- > The root of an object is itself, if its [parent](https://dom.spec.whatwg.org/#concept-tree-parent) is null, or else it is the [root](https://dom.spec.whatwg.org/#concept-tree-root) of its [parent](https://dom.spec.whatwg.org/#concept-tree-parent).

Since the attribute in the example has no parent, it has no root, and therefore it isn't connected.

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

Message ID: <whatwg/dom/issues/1448/3805083092@github.com>

Received on Tuesday, 27 January 2026 12:57:20 UTC