diff --git a/packages/happy-dom/src/nodes/element/Element.ts b/packages/happy-dom/src/nodes/element/Element.ts index 35d47852a..3b807d157 100644 --- a/packages/happy-dom/src/nodes/element/Element.ts +++ b/packages/happy-dom/src/nodes/element/Element.ts @@ -379,10 +379,6 @@ export default class Element extends Node implements IElement { } (clone.tagName) = this.tagName; - clone.scrollLeft = this.scrollLeft; - clone.scrollTop = this.scrollTop; - clone.scrollWidth = this.scrollWidth; - clone.scrollHeight = this.scrollHeight; (clone.namespaceURI) = this.namespaceURI; return clone; diff --git a/packages/happy-dom/test/nodes/element/Element.test.ts b/packages/happy-dom/test/nodes/element/Element.test.ts index 4436ddff3..e216c20ff 100644 --- a/packages/happy-dom/test/nodes/element/Element.test.ts +++ b/packages/happy-dom/test/nodes/element/Element.test.ts @@ -1551,8 +1551,6 @@ describe('Element', () => { child.className = 'className'; (element.tagName) = 'tagName'; - (element.scrollLeft) = 10; - (element.scrollTop) = 10; // @ts-ignore element.namespaceURI = 'namespaceURI'; @@ -1562,8 +1560,6 @@ describe('Element', () => { const clone = element.cloneNode(false); const clone2 = element.cloneNode(true); expect(clone.tagName).toBe('tagName'); - expect(clone.scrollLeft).toBe(10); - expect(clone.scrollTop).toBe(10); expect(clone.namespaceURI).toBe('namespaceURI'); expect(clone.children.length).toEqual(0); expect(clone2.children.length).toBe(1);