Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: rewrite set_class() to handle directives #15352

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
Update packages/svelte/src/internal/client/dom/elements/attributes.js
nit

Co-authored-by: Rich Harris <hello@rich-harris.dev>
  • Loading branch information
adiguba and Rich-Harris authored Feb 22, 2025
commit 86fb42ff2279c33b888c39ec5de355b2afdfe274
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,8 @@ export function set_custom_element_data(node, prop, value) {
/**
* Spreads attributes onto a DOM element, taking into account the currently set attributes
* @param {Element & ElementCSSInlineStyle} element
* @param {Record<string|symbol, any> | undefined} prev
* @param {Record<string|symbol, any>} next New attributes - this function mutates this object
* @param {Record<string | symbol, any> | undefined} prev
* @param {Record<string | symbol, any>} next New attributes - this function mutates this object
* @param {string} [css_hash]
* @param {boolean} [preserve_attribute_case]
* @param {boolean} [is_custom_element]
Expand Down
Loading