From eb44643bdf49ffcb3b4a01abdbead78ee6e2f2e7 Mon Sep 17 00:00:00 2001 From: Christian Svensson Date: Wed, 8 Nov 2023 17:47:49 +0100 Subject: [PATCH] docs: correct a few broken links (#52688) PR Close #52688 --- adev/src/content/guide/components/dom-apis.md | 6 +++--- .../introduction/essentials/handling-user-interaction.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/adev/src/content/guide/components/dom-apis.md b/adev/src/content/guide/components/dom-apis.md index 87c48fda626..8bf86739cdf 100644 --- a/adev/src/content/guide/components/dom-apis.md +++ b/adev/src/content/guide/components/dom-apis.md @@ -72,9 +72,9 @@ common use cases include: - Measuring element geometry, such as with `getBoundingClientRect` - Reading an element's text content - Setting up native observers such - as `[MutationObserver](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver)`, - `[ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)`, or - `[IntersectionObserver](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API)`. + as [`MutationObserver`](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver), + [`ResizeObserver`](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver), or + [`IntersectionObserver`](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API). Avoid inserting, removing, and modifying DOM elements. In particular, **never directly set an element's `innerHTML` property**, which can make your application vulnerable diff --git a/adev/src/content/introduction/essentials/handling-user-interaction.md b/adev/src/content/introduction/essentials/handling-user-interaction.md index 309f908cdc6..28fa60e0c03 100644 --- a/adev/src/content/introduction/essentials/handling-user-interaction.md +++ b/adev/src/content/introduction/essentials/handling-user-interaction.md @@ -43,7 +43,7 @@ Other common examples of event listeners include: ### $event -If you need to access the [event]([Event - Web APIs | MDN](https://developer.mozilla.org/en-US/docs/Web/API/Event)) object, Angular provides an implicit `$event` variable that you can be pass to a function: +If you need to access the [event](https://developer.mozilla.org/en-US/docs/Web/API/Event) object, Angular provides an implicit `$event` variable that you can be pass to a function: ```html