Skip to content

Commit 51d1ade

Browse files
authored
tweak
1 parent 9638e69 commit 51d1ade

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

content/guide/06-special-components.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,7 @@ You can also bind to certain values — so far `innerWidth`, `outerWidth`, `inne
169169

170170
### `<svelte:document>`
171171

172-
The `<svelte:document>` tag, just like `<svelte:window>`, gives you a convenient way to declaratively add event listeners to the `document` object. Also, listeners are automatically removed when the component is destroyed. Currently useful only for listening to `mouseenter` and `mouseleave` events.
173-
174-
Available since [2.15.0](https://github.com/sveltejs/svelte/blob/master/CHANGELOG.md#2150).
172+
The `<svelte:document>` tag, just like `<svelte:window>`, gives you a convenient way to declaratively add event listeners to the `document` object. This is useful for listening to events that don't fire on `window`, such as `mouseenter` and `mouseleave`.
175173

176174

177175
### `<svelte:head>`
@@ -187,4 +185,4 @@ You can do that with the `<svelte:head>` tag:
187185
</svelte:head>
188186
```
189187

190-
When [server rendering](guide#server-side-rendering), the `<head>` contents can be extracted separately to the rest of the markup.
188+
When [server rendering](guide#server-side-rendering), the `<head>` contents can be extracted separately to the rest of the markup.

0 commit comments

Comments
 (0)