summaryrefslogtreecommitdiff
path: root/school/node_modules/jsdom/lib/jsdom/living/nodes/Slotable-impl.js
diff options
context:
space:
mode:
Diffstat (limited to 'school/node_modules/jsdom/lib/jsdom/living/nodes/Slotable-impl.js')
-rw-r--r--school/node_modules/jsdom/lib/jsdom/living/nodes/Slotable-impl.js48
1 files changed, 0 insertions, 48 deletions
diff --git a/school/node_modules/jsdom/lib/jsdom/living/nodes/Slotable-impl.js b/school/node_modules/jsdom/lib/jsdom/living/nodes/Slotable-impl.js
deleted file mode 100644
index 5746a01..0000000
--- a/school/node_modules/jsdom/lib/jsdom/living/nodes/Slotable-impl.js
+++ /dev/null
@@ -1,48 +0,0 @@
-"use strict";
-
-const { findSlot, assignSlot, assignSlotable } = require("../helpers/shadow-dom");
-
-// https://dom.spec.whatwg.org/#mixin-slotable
-// https://dom.spec.whatwg.org/#light-tree-slotables
-class SlotableMixinImpl {
- _initSlotableMixin() {
- this._slotableName = "";
- }
-
- _attrModifiedSlotableMixin(name, value, oldValue) {
- if (name === "slot") {
- if (value === oldValue) {
- return;
- }
-
- if (value === null && oldValue === "") {
- return;
- }
-
- if (value === "" && oldValue === null) {
- return;
- }
-
- if (value === null || value === "") {
- this._slotableName = "";
- } else {
- this._slotableName = value;
- }
-
-
- if (this._assignedSlot) {
- assignSlotable(this._assignedSlot);
- }
-
- assignSlot(this);
- }
- }
-
- get assignedSlot() {
- return findSlot(this, "open");
- }
-}
-
-module.exports = {
- implementation: SlotableMixinImpl
-};