Skip to content

Commit 41e9766

Browse files
committed
tune
1 parent 171fa30 commit 41e9766

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ export function set_attribute(element, attribute, value) {
3939
attributes[attribute] = element.getAttribute(attribute);
4040

4141
if (attribute === 'src' || attribute === 'href' || attribute === 'srcset') {
42+
check_src_in_dev_hydration(element, attribute, value);
43+
4244
// If we reset these attributes, they would result in another network request, which we want to avoid.
4345
// We assume they are the same between client and server as checking if they are equal is expensive
4446
// (we can't just compare the strings as they can be different between client and server but result in the

0 commit comments

Comments
 (0)