Skip to content

Commit 6d40878

Browse files
committed
explanatory comment
1 parent e52b534 commit 6d40878

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/svelte/src/internal/client/dom/elements/attributes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ export function set_attributes(
378378
element[`__${event_name}`] = undefined;
379379
}
380380
} else if (key === 'style') {
381+
// avoid using the setter
381382
set_attribute(element, key, value);
382383
} else if (key === 'autofocus') {
383384
autofocus(/** @type {HTMLElement} */ (element), Boolean(value));

0 commit comments

Comments
 (0)