isConnected property
Implementation
bool get isConnected {
Node parent = this;
while (parent.parentNode != null) {
parent = parent.parentNode!;
}
Document document = elementManager.document;
return this == document || parent == document;
}