From 47715fd3062575dc2fd10d246f512eddb3e2c5a3 Mon Sep 17 00:00:00 2001 From: baseballyama Date: Tue, 14 Nov 2023 21:20:43 +0900 Subject: [PATCH 1/3] update docs --- .../routes/docs/content/03-appendix/02-breaking-changes.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sites/svelte-5-preview/src/routes/docs/content/03-appendix/02-breaking-changes.md b/sites/svelte-5-preview/src/routes/docs/content/03-appendix/02-breaking-changes.md index ce774f2b16..85b5acbc33 100644 --- a/sites/svelte-5-preview/src/routes/docs/content/03-appendix/02-breaking-changes.md +++ b/sites/svelte-5-preview/src/routes/docs/content/03-appendix/02-breaking-changes.md @@ -71,3 +71,7 @@ Previously Svelte would always insert the CSS hash last. This is no longer guara ### `contenteditable` behavior change If you have a `contenteditable` node with a corresponding binding _and_ a reactive value inside it (example: `
count is {count}
`), then the value inside the contenteditable will not be updated by updates to `count` because the binding takes full control over the content immediately and it should only be updated through it. + +### `oneventname` attributes no longer accept string values + +In Svelte4, it was possible to specify HTML event attributes like ` +``` + +This is considered an anti-pattern and is no longer possible in Svelte 5, where properties like `onclick` replace `on:click` as the mechanism for adding [event handlers](/docs/event-handlers).