From 2dfe17439e8041ac34933a2dee13650edf801da0 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Tue, 8 Oct 2024 21:23:04 -0400 Subject: [PATCH] fixes --- .../docs/02-template-syntax/01-component-fundamentals.md | 2 +- .../docs/02-template-syntax/09-special-elements.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/documentation/docs/02-template-syntax/01-component-fundamentals.md b/documentation/docs/02-template-syntax/01-component-fundamentals.md index f3d8b159b8..47c691a560 100644 --- a/documentation/docs/02-template-syntax/01-component-fundamentals.md +++ b/documentation/docs/02-template-syntax/01-component-fundamentals.md @@ -112,7 +112,7 @@ If you export a `const`, `class` or `function`, it is readonly from outside the ``` -Readonly props can be accessed as properties on the element, tied to the component using [`bind:this` syntax](component-directives#bind-this). +Readonly props can be accessed as properties on the element, tied to the component using [`bind:this` syntax](bindings#bind-this). ### Reactive variables diff --git a/documentation/docs/02-template-syntax/09-special-elements.md b/documentation/docs/02-template-syntax/09-special-elements.md index a1b24fb7b9..2b41d55fe4 100644 --- a/documentation/docs/02-template-syntax/09-special-elements.md +++ b/documentation/docs/02-template-syntax/09-special-elements.md @@ -122,7 +122,7 @@ All except `scrollX` and `scrollY` are readonly. ``` -Similarly to ``, this element allows you to add listeners to events on `document`, such as `visibilitychange`, which don't fire on `window`. It also lets you use [actions](element-directives#use-action) on `document`. +Similarly to ``, this element allows you to add listeners to events on `document`, such as `visibilitychange`, which don't fire on `window`. It also lets you use [actions](actions) on `document`. As with ``, this element may only appear the top level of your component and must never be inside a block or element. @@ -145,7 +145,7 @@ All are readonly. ``` -Similarly to ``, this element allows you to add listeners to events on `document.body`, such as `mouseenter` and `mouseleave`, which don't fire on `window`. It also lets you use [actions](element-directives#use-action) on the `` element. +Similarly to ``, this element allows you to add listeners to events on `document.body`, such as `mouseenter` and `mouseleave`, which don't fire on `window`. It also lets you use [actions](actions) on the `` element. As with `` and ``, this element may only appear the top level of your component and must never be inside a block or element. @@ -183,7 +183,7 @@ The `` element provides a place to specify per-component compile - `accessors={true}` — adds getters and setters for the component's props - `accessors={false}` — the default - `namespace="..."` — the namespace where this component will be used, most commonly "svg"; use the "foreign" namespace to opt out of case-insensitive attribute names and HTML-specific warnings -- `customElement={...}` — the [options](custom-elements-api#component-options) to use when compiling this component as a custom element. If a string is passed, it is used as the `tag` option +- `customElement={...}` — the [options](custom-elements#component-options) to use when compiling this component as a custom element. If a string is passed, it is used as the `tag` option ```svelte