From 4033abc443e173e28c2301a2109b2c3b3bf76248 Mon Sep 17 00:00:00 2001 From: goring <67476208+goring@users.noreply.github.com> Date: Sat, 7 Oct 2023 12:58:46 +0100 Subject: [PATCH] #1123@patch: Fixes typo in documentation. --- packages/happy-dom/src/named-node-map/INamedNodeMap.ts | 2 +- packages/happy-dom/src/named-node-map/NamedNodeMap.ts | 2 +- packages/happy-dom/src/query-selector/SelectorParser.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/happy-dom/src/named-node-map/INamedNodeMap.ts b/packages/happy-dom/src/named-node-map/INamedNodeMap.ts index 1cf23829b..395288894 100644 --- a/packages/happy-dom/src/named-node-map/INamedNodeMap.ts +++ b/packages/happy-dom/src/named-node-map/INamedNodeMap.ts @@ -22,7 +22,7 @@ export default interface INamedNodeMap { * Returns named item. * * @param name Name. - * @returns Itme. + * @returns Item. */ getNamedItem(name: string): IAttr | null; diff --git a/packages/happy-dom/src/named-node-map/NamedNodeMap.ts b/packages/happy-dom/src/named-node-map/NamedNodeMap.ts index 7dcf80035..d7522c70b 100644 --- a/packages/happy-dom/src/named-node-map/NamedNodeMap.ts +++ b/packages/happy-dom/src/named-node-map/NamedNodeMap.ts @@ -46,7 +46,7 @@ export default class NamedNodeMap implements INamedNodeMap { * Returns named item. * * @param name Name. - * @returns Itme. + * @returns Item. */ public getNamedItem(name: string): IAttr | null { return this._namedItems[name] || null; diff --git a/packages/happy-dom/src/query-selector/SelectorParser.ts b/packages/happy-dom/src/query-selector/SelectorParser.ts index a384f8120..5f5d05909 100644 --- a/packages/happy-dom/src/query-selector/SelectorParser.ts +++ b/packages/happy-dom/src/query-selector/SelectorParser.ts @@ -63,7 +63,7 @@ export default class SelectorParser { * Parses a selector string and returns an instance of SelectorItem. * * @param selector Selector. - * @returns Selector itme. + * @returns Selector item. */ public static getSelectorItem(selector: string): SelectorItem { return this.getSelectorGroups(selector)[0][0];