Update html to svelte(remaining ones)

pull/8289/head
Puru Vijay 4 years ago
parent 11a0b471a7
commit d7c1a951d4

@ -6,8 +6,8 @@ Similar to `<svelte:window>`, the `<svelte:document>` element allows you to list
Add the `selectionchange` handler to the `<svelte:document>` tag: Add the `selectionchange` handler to the `<svelte:document>` tag:
```html ```svelte
<svelte:document on:selectionchange={handleSelectionChange} /> <svelte:document on:selectionchange={handleSelectionChange} />
``` ```
> Avoid `mouseenter` and `mouseleave` handlers on this element, these events are not fired on `document` in all browsers. Use `<svelte:body>` for this instead. > Avoid `mouseenter` and `mouseleave` handlers on this element, these events are not fired on `document` in all browsers. Use `<svelte:body>` for this instead.

@ -6,9 +6,9 @@ Similar to `<svelte:window>` and `<svelte:document>`, the `<svelte:body>` elemen
Add the `mouseenter` and `mouseleave` handlers to the `<svelte:body>` tag: Add the `mouseenter` and `mouseleave` handlers to the `<svelte:body>` tag:
```html ```svelte
<svelte:body <svelte:body
on:mouseenter={handleMouseenter} on:mouseenter={handleMouseenter}
on:mouseleave={handleMouseleave} on:mouseleave={handleMouseleave}
/> />
``` ```

Loading…
Cancel
Save