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 1
1
import { DEV } from 'esm-env' ;
2
2
import { hydrating } from '../hydration.js' ;
3
3
import { get_descriptors , get_prototype_of } from '../../../shared/utils.js' ;
4
- import { NAMESPACE_SVG } from '../../../../constants.js' ;
5
4
import { create_event , delegate } from './events.js' ;
6
5
import { add_form_reset_listener , autofocus } from './misc.js' ;
7
6
import * as w from '../../warnings.js' ;
@@ -318,10 +317,11 @@ function get_setters(element) {
318
317
setters_cache . set ( element . nodeName , ( setters = [ ] ) ) ;
319
318
var descriptors ;
320
319
var proto = get_prototype_of ( element ) ;
320
+ var element_proto = Element . prototype ;
321
321
322
322
// Stop at Element, from there on there's only unnecessary setters we're not interested in
323
323
// 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 ) {
325
325
descriptors = get_descriptors ( proto ) ;
326
326
327
327
for ( var key in descriptors ) {
You can’t perform that action at this time.
0 commit comments