happy-dom
Advanced tools
Comparing version 14.6.2 to 14.7.0
@@ -16,4 +16,2 @@ /// <reference types="node" /> | ||
import Node from '../nodes/node/Node.cjs'; | ||
import Text from '../nodes/text/Text.cjs'; | ||
import Comment from '../nodes/comment/Comment.cjs'; | ||
import ShadowRoot from '../nodes/shadow-root/ShadowRoot.cjs'; | ||
@@ -142,2 +140,4 @@ import HTMLTemplateElement from '../nodes/html-template-element/HTMLTemplateElement.cjs'; | ||
import ImageImplementation from '../nodes/html-image-element/Image.cjs'; | ||
import TextImplementation from '../nodes/text/Text.cjs'; | ||
import CommentImplementation from '../nodes/comment/Comment.cjs'; | ||
import DocumentFragmentImplementation from '../nodes/document-fragment/DocumentFragment.cjs'; | ||
@@ -165,4 +165,2 @@ import DOMParserImplementation from '../dom-parser/DOMParser.cjs'; | ||
readonly SVGGraphicsElement: typeof SVGGraphicsElement; | ||
readonly Text: typeof Text; | ||
readonly Comment: typeof Comment; | ||
readonly ShadowRoot: typeof ShadowRoot; | ||
@@ -177,2 +175,4 @@ readonly ProcessingInstruction: typeof ProcessingInstruction; | ||
readonly SVGDocument: new () => SVGDocumentImplementation; | ||
readonly Text: typeof TextImplementation; | ||
readonly Comment: typeof CommentImplementation; | ||
readonly HTMLAnchorElement: typeof HTMLAnchorElement; | ||
@@ -179,0 +179,0 @@ readonly HTMLButtonElement: typeof HTMLButtonElement; |
@@ -16,4 +16,2 @@ /// <reference types="node" resolution-mode="require"/> | ||
import Node from '../nodes/node/Node.js'; | ||
import Text from '../nodes/text/Text.js'; | ||
import Comment from '../nodes/comment/Comment.js'; | ||
import ShadowRoot from '../nodes/shadow-root/ShadowRoot.js'; | ||
@@ -142,2 +140,4 @@ import HTMLTemplateElement from '../nodes/html-template-element/HTMLTemplateElement.js'; | ||
import ImageImplementation from '../nodes/html-image-element/Image.js'; | ||
import TextImplementation from '../nodes/text/Text.js'; | ||
import CommentImplementation from '../nodes/comment/Comment.js'; | ||
import DocumentFragmentImplementation from '../nodes/document-fragment/DocumentFragment.js'; | ||
@@ -165,4 +165,2 @@ import DOMParserImplementation from '../dom-parser/DOMParser.js'; | ||
readonly SVGGraphicsElement: typeof SVGGraphicsElement; | ||
readonly Text: typeof Text; | ||
readonly Comment: typeof Comment; | ||
readonly ShadowRoot: typeof ShadowRoot; | ||
@@ -177,2 +175,4 @@ readonly ProcessingInstruction: typeof ProcessingInstruction; | ||
readonly SVGDocument: new () => SVGDocumentImplementation; | ||
readonly Text: typeof TextImplementation; | ||
readonly Comment: typeof CommentImplementation; | ||
readonly HTMLAnchorElement: typeof HTMLAnchorElement; | ||
@@ -179,0 +179,0 @@ readonly HTMLButtonElement: typeof HTMLButtonElement; |
@@ -21,4 +21,2 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { | ||
import NodeFilter from '../tree-walker/NodeFilter.js'; | ||
import Text from '../nodes/text/Text.js'; | ||
import Comment from '../nodes/comment/Comment.js'; | ||
import ShadowRoot from '../nodes/shadow-root/ShadowRoot.js'; | ||
@@ -153,2 +151,4 @@ import HTMLTemplateElement from '../nodes/html-template-element/HTMLTemplateElement.js'; | ||
import ImageImplementation from '../nodes/html-image-element/Image.js'; | ||
import TextImplementation from '../nodes/text/Text.js'; | ||
import CommentImplementation from '../nodes/comment/Comment.js'; | ||
import DocumentFragmentImplementation from '../nodes/document-fragment/DocumentFragment.js'; | ||
@@ -194,4 +194,2 @@ import DOMParserImplementation from '../dom-parser/DOMParser.js'; | ||
this.SVGGraphicsElement = SVGGraphicsElement; | ||
this.Text = Text; | ||
this.Comment = Comment; | ||
this.ShadowRoot = ShadowRoot; | ||
@@ -517,2 +515,6 @@ this.ProcessingInstruction = ProcessingInstruction; | ||
} | ||
class Text extends TextImplementation { | ||
} | ||
class Comment extends CommentImplementation { | ||
} | ||
/* eslint-enable jsdoc/require-jsdoc */ | ||
@@ -522,2 +524,4 @@ this.Response = Response; | ||
this.Image = Image; | ||
this.Text = Text; | ||
this.Comment = Comment; | ||
this.DocumentFragment = DocumentFragment; | ||
@@ -549,2 +553,4 @@ this.FileReader = FileReader; | ||
this.DocumentFragment[PropertySymbol.ownerDocument] = this.document; | ||
this.Text[PropertySymbol.ownerDocument] = this.document; | ||
this.Comment[PropertySymbol.ownerDocument] = this.document; | ||
// Ready state manager | ||
@@ -1115,2 +1121,4 @@ this[PropertySymbol.readyStateManager].waitUntilComplete().then(() => { | ||
this.DocumentFragment[PropertySymbol.ownerDocument] = null; | ||
this.Text[PropertySymbol.ownerDocument] = null; | ||
this.Comment[PropertySymbol.ownerDocument] = null; | ||
const mutationObservers = this[PropertySymbol.mutationObservers]; | ||
@@ -1117,0 +1125,0 @@ for (const mutationObserver of mutationObservers) { |
{ | ||
"name": "happy-dom", | ||
"version": "14.6.2", | ||
"version": "14.7.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/capricorn86/happy-dom", |
@@ -9,4 +9,2 @@ import CustomElementRegistry from '../custom-element/CustomElementRegistry.js'; | ||
import NodeFilter from '../tree-walker/NodeFilter.js'; | ||
import Text from '../nodes/text/Text.js'; | ||
import Comment from '../nodes/comment/Comment.js'; | ||
import ShadowRoot from '../nodes/shadow-root/ShadowRoot.js'; | ||
@@ -146,2 +144,4 @@ import HTMLTemplateElement from '../nodes/html-template-element/HTMLTemplateElement.js'; | ||
import ImageImplementation from '../nodes/html-image-element/Image.js'; | ||
import TextImplementation from '../nodes/text/Text.js'; | ||
import CommentImplementation from '../nodes/comment/Comment.js'; | ||
import DocumentFragmentImplementation from '../nodes/document-fragment/DocumentFragment.js'; | ||
@@ -181,4 +181,2 @@ import DOMParserImplementation from '../dom-parser/DOMParser.js'; | ||
public readonly SVGGraphicsElement: typeof SVGGraphicsElement = SVGGraphicsElement; | ||
public readonly Text: typeof Text = Text; | ||
public readonly Comment: typeof Comment = Comment; | ||
public readonly ShadowRoot: typeof ShadowRoot = ShadowRoot; | ||
@@ -193,2 +191,4 @@ public readonly ProcessingInstruction: typeof ProcessingInstruction = ProcessingInstruction; | ||
public readonly SVGDocument: new () => SVGDocumentImplementation; | ||
public readonly Text: typeof TextImplementation; | ||
public readonly Comment: typeof CommentImplementation; | ||
@@ -623,2 +623,4 @@ // Element classes | ||
class DocumentFragment extends DocumentFragmentImplementation {} | ||
class Text extends TextImplementation {} | ||
class Comment extends CommentImplementation {} | ||
@@ -630,2 +632,4 @@ /* eslint-enable jsdoc/require-jsdoc */ | ||
this.Image = Image; | ||
this.Text = Text; | ||
this.Comment = Comment; | ||
this.DocumentFragment = DocumentFragment; | ||
@@ -660,2 +664,4 @@ this.FileReader = FileReader; | ||
this.DocumentFragment[PropertySymbol.ownerDocument] = this.document; | ||
this.Text[PropertySymbol.ownerDocument] = this.document; | ||
this.Comment[PropertySymbol.ownerDocument] = this.document; | ||
@@ -1306,2 +1312,4 @@ // Ready state manager | ||
this.DocumentFragment[PropertySymbol.ownerDocument] = null; | ||
this.Text[PropertySymbol.ownerDocument] = null; | ||
this.Comment[PropertySymbol.ownerDocument] = null; | ||
@@ -1308,0 +1316,0 @@ const mutationObservers = this[PropertySymbol.mutationObservers]; |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8257613
165421