Skip to content

Commit 0a6819a

Browse files
committed
fix
1 parent 4f3caca commit 0a6819a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { DEV } from 'esm-env';
22
import { hydrating } from '../hydration.js';
33
import { get_descriptors, get_prototype_of } from '../../../shared/utils.js';
4-
import { NAMESPACE_SVG } from '../../../../constants.js';
54
import { create_event, delegate } from './events.js';
65
import { add_form_reset_listener, autofocus } from './misc.js';
76
import * as w from '../../warnings.js';
@@ -318,10 +317,11 @@ function get_setters(element) {
318317
setters_cache.set(element.nodeName, (setters = []));
319318
var descriptors;
320319
var proto = get_prototype_of(element);
320+
var element_proto = Element.prototype;
321321

322322
// Stop at Element, from there on there's only unnecessary setters we're not interested in
323323
// Do not use contructor.name here as that's unreliable in some browser environments
324-
while (!Element.prototype.isPrototypeOf(proto)) {
324+
while (element_proto !== proto) {
325325
descriptors = get_descriptors(proto);
326326

327327
for (var key in descriptors) {

0 commit comments

Comments
 (0)