aboutsummaryrefslogtreecommitdiff
path: root/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLegendElement-impl.js
diff options
context:
space:
mode:
authorJoel Kronqvist <joel.h.kronqvist@gmail.com>2022-03-05 19:02:27 +0200
committerJoel Kronqvist <joel.h.kronqvist@gmail.com>2022-03-05 19:02:27 +0200
commit5d309ff52cd399a6b71968a6b9a70c8ac0b98981 (patch)
tree360f7eb50f956e2367ef38fa1fc6ac7ac5258042 /node_modules/jsdom/lib/jsdom/living/nodes/HTMLLegendElement-impl.js
parentb500a50f1b97d93c98b36ed9a980f8188d648147 (diff)
downloadLYLLRuoka-5d309ff52cd399a6b71968a6b9a70c8ac0b98981.tar.gz
LYLLRuoka-5d309ff52cd399a6b71968a6b9a70c8ac0b98981.zip
Added node_modules for the updating to work properly.
Diffstat (limited to 'node_modules/jsdom/lib/jsdom/living/nodes/HTMLLegendElement-impl.js')
-rw-r--r--node_modules/jsdom/lib/jsdom/living/nodes/HTMLLegendElement-impl.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLegendElement-impl.js b/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLegendElement-impl.js
new file mode 100644
index 0000000..e4d23dc
--- /dev/null
+++ b/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLegendElement-impl.js
@@ -0,0 +1,18 @@
+"use strict";
+const HTMLElementImpl = require("./HTMLElement-impl").implementation;
+const { formOwner } = require("../helpers/form-controls");
+const { HTML_NS } = require("../helpers/namespaces");
+
+class HTMLLegendElementImpl extends HTMLElementImpl {
+ get form() {
+ const parent = this.parentNode;
+ if (parent && parent._localName === "fieldset" && parent.namespaceURI === HTML_NS) {
+ return formOwner(parent);
+ }
+ return null;
+ }
+}
+
+module.exports = {
+ implementation: HTMLLegendElementImpl
+};