Skip to content

Commit

Permalink
Merge pull request #676 from capricorn86/task/664-referenceerror-html…
Browse files Browse the repository at this point in the history
…selectelement-is-not-defined

#664@patch: Adds the property window.HTMLSelectElement, so that it wi…
  • Loading branch information
capricorn86 committed Dec 7, 2022
2 parents 4d20b19 + fc7e5c8 commit c9f5af0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/happy-dom/src/window/IWindow.ts
Expand Up @@ -13,6 +13,7 @@ import HTMLFormElement from '../nodes/html-form-element/HTMLFormElement';
import HTMLElement from '../nodes/html-element/HTMLElement';
import HTMLUnknownElement from '../nodes/html-unknown-element/HTMLUnknownElement';
import HTMLInputElement from '../nodes/html-input-element/HTMLInputElement';
import HTMLSelectElement from '../nodes/html-input-element/HTMLSelectElement';
import HTMLTextAreaElement from '../nodes/html-text-area-element/HTMLTextAreaElement';
import HTMLLinkElement from '../nodes/html-link-element/HTMLLinkElement';
import HTMLStyleElement from '../nodes/html-style-element/HTMLStyleElement';
Expand Down Expand Up @@ -128,6 +129,7 @@ export default interface IWindow extends IEventTarget, NodeJS.Global {
readonly HTMLTemplateElement: typeof HTMLTemplateElement;
readonly HTMLFormElement: typeof HTMLFormElement;
readonly HTMLInputElement: typeof HTMLInputElement;
readonly HTMLSelectElement: typeof HTMLSelectElement;
readonly HTMLTextAreaElement: typeof HTMLTextAreaElement;
readonly HTMLImageElement: typeof HTMLImageElement;
readonly HTMLScriptElement: typeof HTMLScriptElement;
Expand Down
2 changes: 2 additions & 0 deletions packages/happy-dom/src/window/Window.ts
Expand Up @@ -14,6 +14,7 @@ import HTMLFormElement from '../nodes/html-form-element/HTMLFormElement';
import HTMLElement from '../nodes/html-element/HTMLElement';
import HTMLUnknownElement from '../nodes/html-unknown-element/HTMLUnknownElement';
import HTMLInputElement from '../nodes/html-input-element/HTMLInputElement';
import HTMLSelectElement from '../nodes/html-input-element/HTMLSelectElement';
import HTMLTextAreaElement from '../nodes/html-text-area-element/HTMLTextAreaElement';
import HTMLLinkElement from '../nodes/html-link-element/HTMLLinkElement';
import HTMLStyleElement from '../nodes/html-style-element/HTMLStyleElement';
Expand Down Expand Up @@ -168,6 +169,7 @@ export default class Window extends EventTarget implements IWindow {
public readonly HTMLTemplateElement = HTMLTemplateElement;
public readonly HTMLFormElement = HTMLFormElement;
public readonly HTMLInputElement = HTMLInputElement;
public readonly HTMLSelectElement = HTMLSelectElement;
public readonly HTMLTextAreaElement = HTMLTextAreaElement;
public readonly HTMLImageElement = HTMLImageElement;
public readonly HTMLScriptElement = HTMLScriptElement;
Expand Down

0 comments on commit c9f5af0

Please sign in to comment.