Skip to content

Commit 4b7b888

Browse files
committed
remove comment, since the rationale for skipping the attributes in question is covered by the one immediately below
1 parent a3387ab commit 4b7b888

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,6 @@ export function set_attribute(element, attribute, value, skip_warning) {
8989
if (hydrating) {
9090
attributes[attribute] = element.getAttribute(attribute);
9191

92-
// Don't include href: When using a base path, SvelteKit will by default render relative URLs on the server
93-
// and use root-relative links on the client. While the href would resolve to the same URL on the initial
94-
// page, once you're doing a client-side navigation to a URL at a different depth, the relative path would
95-
// now point to the wrong location. Therefore we need to repair href mismatches.
9692
if (
9793
attribute === 'src' ||
9894
attribute === 'srcset' ||

0 commit comments

Comments
 (0)