@@ -83,6 +83,16 @@ export default class DocumentFragment {
return this;
}
+ /**
+ * Artificial parent of `DocumentFragment`. Returns `null`. Added for compatibility reasons.
+ *
+ * @readonly
+ * @type {null}
+ */
+ get parent() {
+ return null;
+ }
+
/**
* Gets the child at the given index. Returns `null` if incorrect index was passed.
*
@@ -71,6 +71,16 @@ export default class DocumentFragment {
* Returns ancestor elements of `DocumentFragment`, which is an empty array. Added for compatibility reasons.