File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/svelte/src/internal/client/dom/elements Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11import { DEV } from 'esm-env' ;
22import { hydrating } from '../hydration.js' ;
33import { get_descriptors , get_prototype_of } from '../../../shared/utils.js' ;
4- import { NAMESPACE_SVG } from '../../../../constants.js' ;
54import { create_event , delegate } from './events.js' ;
65import { add_form_reset_listener , autofocus } from './misc.js' ;
76import * 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 ) {
You can’t perform that action at this time.
0 commit comments