接続

接続 (DOM)

[3] 要素接続されている (connected) (影を含む文書中にある (in a shadow-including document) ) とは、 その影を含む根文書であることをいいます >>2

仕様書

接続

[12] 節点影を含む根文書であることを、節点接続されているといいます。

[4] 文書中なら、影を含む文書中にあります。

逆に影を含む文書中なら文書中とは限りません。

[9] 影を含む文書中となる時実行されるのが節点が接続された時、 影を含む文書中でなくなった時実行されるのが節点が切断された時の処理です。

閲覧文脈接続

[13] 節点接続されていて、影を含む根閲覧文脈が非 null であることを、節点閲覧文脈接続 (browsing-context connected) されているといいます >>14

[15] 閲覧文脈接続状態となる時に閲覧文脈接続された処理、 閲覧文脈接続状態でなくなる時に閲覧文脈切断された処理が行われます。

Node インターフェイス isConnected メソッド

[6] Node インターフェイスisConnected メソッドは、次のようにしなければなりません >>5

  1. [7] 文脈オブジェクト影を含む文書中かどうかを返します。

歴史

[1] Editorial: define in a shadow-including document and shadow-including… · whatwg/dom@7dae99c ( 版) <https://github.com/whatwg/dom/commit/7dae99cae42206a09869394e45844958a189937c>

[8] Introducing node.isConnected · whatwg/dom@b9b9fe1 ( 版) <https://github.com/whatwg/dom/commit/b9b9fe1f05e9796e093841cbba510f9bbd50d6f6>

[10] Rename "in a (shadow-including) document" (annevk著, ) <https://github.com/whatwg/dom/commit/970d7504fd30de898358dbae86527e44842bec2a>

[11] Align with vocabulary changes in the DOM Standard (annevk著, ) <https://github.com/whatwg/html/commit/5b9c5d5a39c38b08e5a5c9334e14804f063235b2>

[16] Make <link rel="stylesheet"> work inside shadow trees (domenic著, ) <https://github.com/whatwg/html/commit/43c57866c2bbc20dc0deb15a721a28cbaad2140c>