%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/share/nodejs/jsdom/lib/jsdom/living/nodes/
Upload File :
Create Path :
Current File : //usr/share/nodejs/jsdom/lib/jsdom/living/nodes/HTMLLegendElement-impl.js

"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
};

Zerion Mini Shell 1.0