diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 2140495e2..90828258d 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -12310,7 +12310,7 @@ interface DOMPointReadOnly { */ readonly x: number; /** - * The DOMPointReadOnl**`y`** interface's y property holds the vertical coordinate, y, for a read-only point in space. + * The DOMPointReadOnly interface's **`y`** property holds the vertical coordinate, y, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ @@ -19177,7 +19177,7 @@ interface HTMLImageElement extends HTMLElement { */ readonly x: number; /** - * The read-onl**`y`** y property of the HTMLImageElement interface indicates the y-coordinate of the element's top border edge relative to the root element's origin. + * The read-only **`y`** property of the HTMLImageElement interface indicates the y-coordinate of the element's top border edge relative to the root element's origin. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/y) */ @@ -33875,7 +33875,7 @@ interface SVGMaskElement extends SVGElement { */ readonly x: SVGAnimatedLength; /** - * The read-onl**`y`** y property of the SVGMaskElement interface returns an SVGAnimatedLength object containing the value of the y attribute of the . It represents the y-axis coordinate of the top-left corner of the masking area. + * The read-only **`y`** property of the SVGMaskElement interface returns an SVGAnimatedLength object containing the value of the y attribute of the . It represents the y-axis coordinate of the top-left corner of the masking area. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/y) */ @@ -37290,7 +37290,7 @@ interface TextEvent extends UIEvent { */ readonly data: string; /** - * The **`initTextEvent`**Event() method of the TextEvent interface initializes the value of a TextEvent after it has been created. + * The initTextEventEvent() method of the TextEvent interface initializes the value of a TextEvent after it has been created. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEvent/initTextEvent) @@ -42275,7 +42275,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler */ readonly toolbar: BarProp; /** - * Returns a reference to the **`top`**most window in the window hierarchy. + * Returns a reference to the topmost window in the window hierarchy. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top) */ @@ -44522,7 +44522,7 @@ declare var statusbar: BarProp; */ declare var toolbar: BarProp; /** - * Returns a reference to the **`top`**most window in the window hierarchy. + * Returns a reference to the topmost window in the window hierarchy. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top) */ diff --git a/baselines/serviceworker.generated.d.ts b/baselines/serviceworker.generated.d.ts index 190881a28..56359a693 100644 --- a/baselines/serviceworker.generated.d.ts +++ b/baselines/serviceworker.generated.d.ts @@ -3325,7 +3325,7 @@ interface DOMPointReadOnly { */ readonly x: number; /** - * The DOMPointReadOnl**`y`** interface's y property holds the vertical coordinate, y, for a read-only point in space. + * The DOMPointReadOnly interface's **`y`** property holds the vertical coordinate, y, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ diff --git a/baselines/sharedworker.generated.d.ts b/baselines/sharedworker.generated.d.ts index 602f794ec..6db80ae55 100644 --- a/baselines/sharedworker.generated.d.ts +++ b/baselines/sharedworker.generated.d.ts @@ -3106,7 +3106,7 @@ interface DOMPointReadOnly { */ readonly x: number; /** - * The DOMPointReadOnl**`y`** interface's y property holds the vertical coordinate, y, for a read-only point in space. + * The DOMPointReadOnly interface's **`y`** property holds the vertical coordinate, y, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index 45ec977fd..aebe0611d 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -12299,7 +12299,7 @@ interface DOMPointReadOnly { */ readonly x: number; /** - * The DOMPointReadOnl**`y`** interface's y property holds the vertical coordinate, y, for a read-only point in space. + * The DOMPointReadOnly interface's **`y`** property holds the vertical coordinate, y, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ @@ -19159,7 +19159,7 @@ interface HTMLImageElement extends HTMLElement { */ readonly x: number; /** - * The read-onl**`y`** y property of the HTMLImageElement interface indicates the y-coordinate of the element's top border edge relative to the root element's origin. + * The read-only **`y`** property of the HTMLImageElement interface indicates the y-coordinate of the element's top border edge relative to the root element's origin. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/y) */ @@ -33850,7 +33850,7 @@ interface SVGMaskElement extends SVGElement { */ readonly x: SVGAnimatedLength; /** - * The read-onl**`y`** y property of the SVGMaskElement interface returns an SVGAnimatedLength object containing the value of the y attribute of the . It represents the y-axis coordinate of the top-left corner of the masking area. + * The read-only **`y`** property of the SVGMaskElement interface returns an SVGAnimatedLength object containing the value of the y attribute of the . It represents the y-axis coordinate of the top-left corner of the masking area. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/y) */ @@ -37264,7 +37264,7 @@ interface TextEvent extends UIEvent { */ readonly data: string; /** - * The **`initTextEvent`**Event() method of the TextEvent interface initializes the value of a TextEvent after it has been created. + * The initTextEventEvent() method of the TextEvent interface initializes the value of a TextEvent after it has been created. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEvent/initTextEvent) @@ -42249,7 +42249,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler */ readonly toolbar: BarProp; /** - * Returns a reference to the **`top`**most window in the window hierarchy. + * Returns a reference to the topmost window in the window hierarchy. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top) */ @@ -44496,7 +44496,7 @@ declare var statusbar: BarProp; */ declare var toolbar: BarProp; /** - * Returns a reference to the **`top`**most window in the window hierarchy. + * Returns a reference to the topmost window in the window hierarchy. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top) */ diff --git a/baselines/ts5.5/serviceworker.generated.d.ts b/baselines/ts5.5/serviceworker.generated.d.ts index afc9c9702..19ecf148c 100644 --- a/baselines/ts5.5/serviceworker.generated.d.ts +++ b/baselines/ts5.5/serviceworker.generated.d.ts @@ -3322,7 +3322,7 @@ interface DOMPointReadOnly { */ readonly x: number; /** - * The DOMPointReadOnl**`y`** interface's y property holds the vertical coordinate, y, for a read-only point in space. + * The DOMPointReadOnly interface's **`y`** property holds the vertical coordinate, y, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ diff --git a/baselines/ts5.5/sharedworker.generated.d.ts b/baselines/ts5.5/sharedworker.generated.d.ts index 272a4fc47..c417dc5a0 100644 --- a/baselines/ts5.5/sharedworker.generated.d.ts +++ b/baselines/ts5.5/sharedworker.generated.d.ts @@ -3103,7 +3103,7 @@ interface DOMPointReadOnly { */ readonly x: number; /** - * The DOMPointReadOnl**`y`** interface's y property holds the vertical coordinate, y, for a read-only point in space. + * The DOMPointReadOnly interface's **`y`** property holds the vertical coordinate, y, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ diff --git a/baselines/ts5.5/webworker.generated.d.ts b/baselines/ts5.5/webworker.generated.d.ts index e74ca3fe4..66053df45 100644 --- a/baselines/ts5.5/webworker.generated.d.ts +++ b/baselines/ts5.5/webworker.generated.d.ts @@ -3829,7 +3829,7 @@ interface DOMPointReadOnly { */ readonly x: number; /** - * The DOMPointReadOnl**`y`** interface's y property holds the vertical coordinate, y, for a read-only point in space. + * The DOMPointReadOnly interface's **`y`** property holds the vertical coordinate, y, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index aca3db87f..f99eb027e 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -12307,7 +12307,7 @@ interface DOMPointReadOnly { */ readonly x: number; /** - * The DOMPointReadOnl**`y`** interface's y property holds the vertical coordinate, y, for a read-only point in space. + * The DOMPointReadOnly interface's **`y`** property holds the vertical coordinate, y, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ @@ -19174,7 +19174,7 @@ interface HTMLImageElement extends HTMLElement { */ readonly x: number; /** - * The read-onl**`y`** y property of the HTMLImageElement interface indicates the y-coordinate of the element's top border edge relative to the root element's origin. + * The read-only **`y`** property of the HTMLImageElement interface indicates the y-coordinate of the element's top border edge relative to the root element's origin. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/y) */ @@ -33872,7 +33872,7 @@ interface SVGMaskElement extends SVGElement { */ readonly x: SVGAnimatedLength; /** - * The read-onl**`y`** y property of the SVGMaskElement interface returns an SVGAnimatedLength object containing the value of the y attribute of the . It represents the y-axis coordinate of the top-left corner of the masking area. + * The read-only **`y`** property of the SVGMaskElement interface returns an SVGAnimatedLength object containing the value of the y attribute of the . It represents the y-axis coordinate of the top-left corner of the masking area. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/y) */ @@ -37287,7 +37287,7 @@ interface TextEvent extends UIEvent { */ readonly data: string; /** - * The **`initTextEvent`**Event() method of the TextEvent interface initializes the value of a TextEvent after it has been created. + * The initTextEventEvent() method of the TextEvent interface initializes the value of a TextEvent after it has been created. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEvent/initTextEvent) @@ -42272,7 +42272,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler */ readonly toolbar: BarProp; /** - * Returns a reference to the **`top`**most window in the window hierarchy. + * Returns a reference to the topmost window in the window hierarchy. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top) */ @@ -44519,7 +44519,7 @@ declare var statusbar: BarProp; */ declare var toolbar: BarProp; /** - * Returns a reference to the **`top`**most window in the window hierarchy. + * Returns a reference to the topmost window in the window hierarchy. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top) */ diff --git a/baselines/ts5.6/serviceworker.generated.d.ts b/baselines/ts5.6/serviceworker.generated.d.ts index afc9c9702..19ecf148c 100644 --- a/baselines/ts5.6/serviceworker.generated.d.ts +++ b/baselines/ts5.6/serviceworker.generated.d.ts @@ -3322,7 +3322,7 @@ interface DOMPointReadOnly { */ readonly x: number; /** - * The DOMPointReadOnl**`y`** interface's y property holds the vertical coordinate, y, for a read-only point in space. + * The DOMPointReadOnly interface's **`y`** property holds the vertical coordinate, y, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ diff --git a/baselines/ts5.6/sharedworker.generated.d.ts b/baselines/ts5.6/sharedworker.generated.d.ts index 272a4fc47..c417dc5a0 100644 --- a/baselines/ts5.6/sharedworker.generated.d.ts +++ b/baselines/ts5.6/sharedworker.generated.d.ts @@ -3103,7 +3103,7 @@ interface DOMPointReadOnly { */ readonly x: number; /** - * The DOMPointReadOnl**`y`** interface's y property holds the vertical coordinate, y, for a read-only point in space. + * The DOMPointReadOnly interface's **`y`** property holds the vertical coordinate, y, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ diff --git a/baselines/ts5.6/webworker.generated.d.ts b/baselines/ts5.6/webworker.generated.d.ts index e74ca3fe4..66053df45 100644 --- a/baselines/ts5.6/webworker.generated.d.ts +++ b/baselines/ts5.6/webworker.generated.d.ts @@ -3829,7 +3829,7 @@ interface DOMPointReadOnly { */ readonly x: number; /** - * The DOMPointReadOnl**`y`** interface's y property holds the vertical coordinate, y, for a read-only point in space. + * The DOMPointReadOnly interface's **`y`** property holds the vertical coordinate, y, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ diff --git a/baselines/ts5.9/dom.generated.d.ts b/baselines/ts5.9/dom.generated.d.ts index b0dba0280..ccfaf6b8c 100644 --- a/baselines/ts5.9/dom.generated.d.ts +++ b/baselines/ts5.9/dom.generated.d.ts @@ -12307,7 +12307,7 @@ interface DOMPointReadOnly { */ readonly x: number; /** - * The DOMPointReadOnl**`y`** interface's y property holds the vertical coordinate, y, for a read-only point in space. + * The DOMPointReadOnly interface's **`y`** property holds the vertical coordinate, y, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ @@ -19174,7 +19174,7 @@ interface HTMLImageElement extends HTMLElement { */ readonly x: number; /** - * The read-onl**`y`** y property of the HTMLImageElement interface indicates the y-coordinate of the element's top border edge relative to the root element's origin. + * The read-only **`y`** property of the HTMLImageElement interface indicates the y-coordinate of the element's top border edge relative to the root element's origin. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/y) */ @@ -33872,7 +33872,7 @@ interface SVGMaskElement extends SVGElement { */ readonly x: SVGAnimatedLength; /** - * The read-onl**`y`** y property of the SVGMaskElement interface returns an SVGAnimatedLength object containing the value of the y attribute of the . It represents the y-axis coordinate of the top-left corner of the masking area. + * The read-only **`y`** property of the SVGMaskElement interface returns an SVGAnimatedLength object containing the value of the y attribute of the . It represents the y-axis coordinate of the top-left corner of the masking area. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/y) */ @@ -37287,7 +37287,7 @@ interface TextEvent extends UIEvent { */ readonly data: string; /** - * The **`initTextEvent`**Event() method of the TextEvent interface initializes the value of a TextEvent after it has been created. + * The initTextEventEvent() method of the TextEvent interface initializes the value of a TextEvent after it has been created. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEvent/initTextEvent) @@ -42272,7 +42272,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler */ readonly toolbar: BarProp; /** - * Returns a reference to the **`top`**most window in the window hierarchy. + * Returns a reference to the topmost window in the window hierarchy. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top) */ @@ -44519,7 +44519,7 @@ declare var statusbar: BarProp; */ declare var toolbar: BarProp; /** - * Returns a reference to the **`top`**most window in the window hierarchy. + * Returns a reference to the topmost window in the window hierarchy. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top) */ diff --git a/baselines/ts5.9/serviceworker.generated.d.ts b/baselines/ts5.9/serviceworker.generated.d.ts index 377ca282f..b9940a22d 100644 --- a/baselines/ts5.9/serviceworker.generated.d.ts +++ b/baselines/ts5.9/serviceworker.generated.d.ts @@ -3322,7 +3322,7 @@ interface DOMPointReadOnly { */ readonly x: number; /** - * The DOMPointReadOnl**`y`** interface's y property holds the vertical coordinate, y, for a read-only point in space. + * The DOMPointReadOnly interface's **`y`** property holds the vertical coordinate, y, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ diff --git a/baselines/ts5.9/sharedworker.generated.d.ts b/baselines/ts5.9/sharedworker.generated.d.ts index ef5f13c4b..03574cee1 100644 --- a/baselines/ts5.9/sharedworker.generated.d.ts +++ b/baselines/ts5.9/sharedworker.generated.d.ts @@ -3103,7 +3103,7 @@ interface DOMPointReadOnly { */ readonly x: number; /** - * The DOMPointReadOnl**`y`** interface's y property holds the vertical coordinate, y, for a read-only point in space. + * The DOMPointReadOnly interface's **`y`** property holds the vertical coordinate, y, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ diff --git a/baselines/ts5.9/webworker.generated.d.ts b/baselines/ts5.9/webworker.generated.d.ts index 69f511463..8d4b90af9 100644 --- a/baselines/ts5.9/webworker.generated.d.ts +++ b/baselines/ts5.9/webworker.generated.d.ts @@ -3829,7 +3829,7 @@ interface DOMPointReadOnly { */ readonly x: number; /** - * The DOMPointReadOnl**`y`** interface's y property holds the vertical coordinate, y, for a read-only point in space. + * The DOMPointReadOnly interface's **`y`** property holds the vertical coordinate, y, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index 45364e7b8..a9cdc506c 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -3832,7 +3832,7 @@ interface DOMPointReadOnly { */ readonly x: number; /** - * The DOMPointReadOnl**`y`** interface's y property holds the vertical coordinate, y, for a read-only point in space. + * The DOMPointReadOnly interface's **`y`** property holds the vertical coordinate, y, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ diff --git a/src/build/mdn-comments.ts b/src/build/mdn-comments.ts index 6047aac60..5a023b919 100644 --- a/src/build/mdn-comments.ts +++ b/src/build/mdn-comments.ts @@ -92,8 +92,9 @@ function generateComment(summary: string, name: string): string | undefined { return summary .replace(/\n/g, " ") // remove newlines .replace( - // Match optional preceding identifier + dot OR just the name itself - new RegExp(`(?:\\b\\w+\\.)?${name}(\\(\\))?`), + // Match optional preceding identifier + dot OR just the name itself, + // as a whole word so that e.g. `y` does not match the end of `read-only` + new RegExp(`(?:\\b\\w+\\.)?\\b${name}\\b(\\(\\))?`), (match) => `**\`${match}\`**`, ) .trim();