From fc429e0a293e31e848290fb2446cdf8379915568 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Tue, 14 Nov 2023 17:02:24 -0500 Subject: [PATCH] Update sites/svelte-5-preview/src/routes/docs/content/03-appendix/02-breaking-changes.md --- .../docs/content/03-appendix/02-breaking-changes.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 3b598f43dd..3841f36980 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 @@ -74,4 +74,10 @@ If you have a `contenteditable` node with a corresponding binding _and_ a reacti ### `oneventname` attributes no longer accept string values -In Svelte 4, 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).