Socket
Socket
Sign inDemoInstall

happy-dom

Package Overview
Dependencies
Maintainers
1
Versions
575
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

happy-dom - npm Package Compare versions

Comparing version 14.3.4 to 14.3.5

3

cjs/nodes/element/Element.d.ts

@@ -25,2 +25,5 @@ import Node from '../node/Node.cjs';

static [PropertySymbol.observedAttributes]: string[];
static [PropertySymbol.tagName]: string | null;
static [PropertySymbol.localName]: string | null;
static [PropertySymbol.namespaceURI]: string | null;
static observedAttributes: string[];

@@ -27,0 +30,0 @@ oncancel: (event: Event) => void | null;

21

lib/custom-element/CustomElementRegistry.js

@@ -53,20 +53,5 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {

elementClass[PropertySymbol.ownerDocument] = __classPrivateFieldGet(this, _CustomElementRegistry_window, "f").document;
Object.defineProperty(elementClass.prototype, 'localName', {
configurable: true,
get: function () {
return this[PropertySymbol.localName] || name;
}
});
Object.defineProperty(elementClass.prototype, 'tagName', {
configurable: true,
get: function () {
return this[PropertySymbol.tagName] || tagName;
}
});
Object.defineProperty(elementClass.prototype, 'namespaceURI', {
configurable: true,
get: function () {
return this[PropertySymbol.namespaceURI] || NamespaceURI.html;
}
});
elementClass[PropertySymbol.tagName] = tagName;
elementClass[PropertySymbol.localName] = name;
elementClass[PropertySymbol.namespaceURI] = NamespaceURI.html;
this[PropertySymbol.registry][name] = {

@@ -73,0 +58,0 @@ elementClass,

@@ -25,2 +25,5 @@ import Node from '../node/Node.js';

static [PropertySymbol.observedAttributes]: string[];
static [PropertySymbol.tagName]: string | null;
static [PropertySymbol.localName]: string | null;
static [PropertySymbol.namespaceURI]: string | null;
static observedAttributes: string[];

@@ -27,0 +30,0 @@ oncancel: (event: Event) => void | null;

@@ -1,2 +0,2 @@

var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
import Node from '../node/Node.js';

@@ -65,17 +65,17 @@ import * as PropertySymbol from '../../PropertySymbol.js';

// Internal properties
this[_a] = new HTMLCollection();
this[_b] = null;
this[_c] = null;
this[_d] = null;
this[_e] = NodeTypeEnum.elementNode;
this[_d] = new HTMLCollection();
this[_e] = null;
this[_f] = null;
this[_g] = null;
this[_h] = null;
this[_j] = null;
this[_k] = 0;
this[_l] = 0;
this[_m] = 0;
this[_h] = NodeTypeEnum.elementNode;
this[_j] = this.constructor[PropertySymbol.tagName] || null;
this[_k] = this.constructor[PropertySymbol.localName] || null;
this[_l] = null;
this[_m] = null;
this[_o] = 0;
this[_p] = new ElementNamedNodeMap(this);
this[_q] = null;
this[_p] = 0;
this[_q] = 0;
this[_r] = 0;
this[_s] = new ElementNamedNodeMap(this);
this[_t] = this.constructor[PropertySymbol.namespaceURI] || null;
}

@@ -929,4 +929,7 @@ /**

}
PropertySymbol.observedAttributes, _a = PropertySymbol.children, _b = PropertySymbol.classList, _c = PropertySymbol.isValue, _d = PropertySymbol.computedStyle, _e = PropertySymbol.nodeType, _f = PropertySymbol.tagName, _g = PropertySymbol.localName, _h = PropertySymbol.prefix, _j = PropertySymbol.shadowRoot, _k = PropertySymbol.scrollHeight, _l = PropertySymbol.scrollWidth, _m = PropertySymbol.scrollTop, _o = PropertySymbol.scrollLeft, _p = PropertySymbol.attributes, _q = PropertySymbol.namespaceURI;
PropertySymbol.observedAttributes, _a = PropertySymbol.tagName, _b = PropertySymbol.localName, _c = PropertySymbol.namespaceURI, _d = PropertySymbol.children, _e = PropertySymbol.classList, _f = PropertySymbol.isValue, _g = PropertySymbol.computedStyle, _h = PropertySymbol.nodeType, _j = PropertySymbol.tagName, _k = PropertySymbol.localName, _l = PropertySymbol.prefix, _m = PropertySymbol.shadowRoot, _o = PropertySymbol.scrollHeight, _p = PropertySymbol.scrollWidth, _q = PropertySymbol.scrollTop, _r = PropertySymbol.scrollLeft, _s = PropertySymbol.attributes, _t = PropertySymbol.namespaceURI;
Element[_a] = null;
Element[_b] = null;
Element[_c] = null;
export default Element;
//# sourceMappingURL=Element.js.map
{
"name": "happy-dom",
"version": "14.3.4",
"version": "14.3.5",
"license": "MIT",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/capricorn86/happy-dom",

@@ -62,24 +62,6 @@ import DOMException from '../exception/DOMException.js';

elementClass[PropertySymbol.ownerDocument] = this.#window.document;
elementClass[PropertySymbol.tagName] = tagName;
elementClass[PropertySymbol.localName] = name;
elementClass[PropertySymbol.namespaceURI] = NamespaceURI.html;
Object.defineProperty(elementClass.prototype, 'localName', {
configurable: true,
get: function () {
return this[PropertySymbol.localName] || name;
}
});
Object.defineProperty(elementClass.prototype, 'tagName', {
configurable: true,
get: function () {
return this[PropertySymbol.tagName] || tagName;
}
});
Object.defineProperty(elementClass.prototype, 'namespaceURI', {
configurable: true,
get: function () {
return this[PropertySymbol.namespaceURI] || NamespaceURI.html;
}
});
this[PropertySymbol.registry][name] = {

@@ -86,0 +68,0 @@ elementClass,

@@ -48,2 +48,5 @@ import Node from '../node/Node.js';

public static [PropertySymbol.observedAttributes]: string[];
public static [PropertySymbol.tagName]: string | null = null;
public static [PropertySymbol.localName]: string | null = null;
public static [PropertySymbol.namespaceURI]: string | null = null;
public static observedAttributes: string[];

@@ -93,4 +96,5 @@

public [PropertySymbol.nodeType] = NodeTypeEnum.elementNode;
public [PropertySymbol.tagName]: string | null = null;
public [PropertySymbol.localName]: string | null = null;
public [PropertySymbol.tagName]: string | null = this.constructor[PropertySymbol.tagName] || null;
public [PropertySymbol.localName]: string | null =
this.constructor[PropertySymbol.localName] || null;
public [PropertySymbol.prefix]: string | null = null;

@@ -103,3 +107,4 @@ public [PropertySymbol.shadowRoot]: ShadowRoot | null = null;

public [PropertySymbol.attributes]: NamedNodeMap = new ElementNamedNodeMap(this);
public [PropertySymbol.namespaceURI]: string | null = null;
public [PropertySymbol.namespaceURI]: string | null =
this.constructor[PropertySymbol.namespaceURI] || null;

@@ -106,0 +111,0 @@ /**

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc