Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c95ef2c

Browse files
authoredSep 5, 2021
Merge pull request #558 from AugustNagro/443-node-is-connected
Add Node.isConnected
2 parents 65f8a3f + 1e50775 commit c95ef2c

File tree

3 files changed

+263
-0
lines changed

3 files changed

+263
-0
lines changed
 

‎api-reports/2_12.txt

Lines changed: 130 additions & 0 deletions
Large diffs are not rendered by default.

‎api-reports/2_13.txt

Lines changed: 130 additions & 0 deletions
Large diffs are not rendered by default.

‎src/main/scala/org/scalajs/dom/lib.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,9 @@ abstract class Node extends EventTarget {
784784
/** Returns the absolute base URL of this Node. */
785785
def baseURI: String = js.native
786786

787+
/** True if this Node is connected to the Document context object (or ShadowRoot in the case of shadow DOM) */
788+
def isConnected: Boolean = js.native
789+
787790
/** Represents the "rendered" text content of a node and its descendants. As a getter, it approximates the text the
788791
* user would get if they highlighted the contents of the element with the cursor and then copied to the clipboard.
789792
*/

0 commit comments

Comments
 (0)
Please sign in to comment.