diff --git a/packages/happy-dom/src/nodes/html-input-element/HTMLInputElement.ts b/packages/happy-dom/src/nodes/html-input-element/HTMLInputElement.ts index 0c392bc98..d74b9014a 100644 --- a/packages/happy-dom/src/nodes/html-input-element/HTMLInputElement.ts +++ b/packages/happy-dom/src/nodes/html-input-element/HTMLInputElement.ts @@ -487,7 +487,7 @@ export default class HTMLInputElement extends HTMLElement { * * @returns Inputmode. */ - public get inputmode(): string { + public get inputMode(): string { return this.getAttribute('inputmode') || ''; } @@ -496,7 +496,7 @@ export default class HTMLInputElement extends HTMLElement { * * @param inputmode Inputmode. */ - public set inputmode(inputmode: string) { + public set inputMode(inputmode: string) { this.setAttribute('inputmode', inputmode); } diff --git a/packages/happy-dom/src/nodes/html-text-area-element/HTMLTextAreaElement.ts b/packages/happy-dom/src/nodes/html-text-area-element/HTMLTextAreaElement.ts index df5f67b11..de0e05750 100644 --- a/packages/happy-dom/src/nodes/html-text-area-element/HTMLTextAreaElement.ts +++ b/packages/happy-dom/src/nodes/html-text-area-element/HTMLTextAreaElement.ts @@ -158,7 +158,7 @@ export default class HTMLTextAreaElement extends HTMLElement { * * @returns Inputmode. */ - public get inputmode(): string { + public get inputMode(): string { return this.getAttribute('inputmode') || ''; } @@ -167,7 +167,7 @@ export default class HTMLTextAreaElement extends HTMLElement { * * @param inputmode Inputmode. */ - public set inputmode(inputmode: string) { + public set inputMode(inputmode: string) { this.setAttribute('inputmode', inputmode); } diff --git a/packages/happy-dom/test/browser/BrowserFrame.test.ts b/packages/happy-dom/test/browser/BrowserFrame.test.ts index 1f1303e21..8a8d9639a 100644 --- a/packages/happy-dom/test/browser/BrowserFrame.test.ts +++ b/packages/happy-dom/test/browser/BrowserFrame.test.ts @@ -762,7 +762,7 @@ describe('BrowserFrame', () => { ? '' : 'Navigated' ), - 1 + 10 ) ) }); @@ -816,7 +816,7 @@ describe('BrowserFrame', () => { ? '' : 'Navigated' ), - 1 + 10 ) ) }); @@ -871,7 +871,7 @@ describe('BrowserFrame', () => { ? '' : 'Navigated' ), - 1 + 10 ) ) }); diff --git a/packages/happy-dom/test/nodes/html-input-element/HTMLInputElement.test.ts b/packages/happy-dom/test/nodes/html-input-element/HTMLInputElement.test.ts index cc87ea96e..5a5483251 100644 --- a/packages/happy-dom/test/nodes/html-input-element/HTMLInputElement.test.ts +++ b/packages/happy-dom/test/nodes/html-input-element/HTMLInputElement.test.ts @@ -731,7 +731,7 @@ describe('HTMLInputElement', () => { 'pattern', 'placeholder', 'step', - 'inputmode' + 'inputMode' ]) { describe(`get ${property}()`, () => { it('Returns attribute value.', () => { diff --git a/packages/happy-dom/test/nodes/html-text-area-element/HTMLTextAreaElement.test.ts b/packages/happy-dom/test/nodes/html-text-area-element/HTMLTextAreaElement.test.ts index a10034918..a84c8be01 100644 --- a/packages/happy-dom/test/nodes/html-text-area-element/HTMLTextAreaElement.test.ts +++ b/packages/happy-dom/test/nodes/html-text-area-element/HTMLTextAreaElement.test.ts @@ -161,7 +161,7 @@ describe('HTMLTextAreaElement', () => { }); } - for (const property of ['name', 'autocomplete', 'cols', 'rows', 'placeholder']) { + for (const property of ['name', 'autocomplete', 'cols', 'rows', 'placeholder', 'inputMode']) { describe(`get ${property}()`, () => { it('Returns attribute value.', () => { expect(element[property]).toBe('');