We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Element
1 parent 8a06d05 commit 4f3cacaCopy full SHA for 4f3caca
.changeset/gorgeous-vans-sparkle.md
@@ -0,0 +1,5 @@
1
+---
2
+'svelte': patch
3
4
+
5
+fix: add more robust check for `Element` prototype
packages/svelte/src/internal/client/dom/elements/attributes.js
@@ -320,7 +320,8 @@ function get_setters(element) {
320
var proto = get_prototype_of(element);
321
322
// Stop at Element, from there on there's only unnecessary setters we're not interested in
323
- while (proto.constructor.name !== 'Element') {
+ // Do not use contructor.name here as that's unreliable in some browser environments
324
+ while (!Element.prototype.isPrototypeOf(proto)) {
325
descriptors = get_descriptors(proto);
326
327
for (var key in descriptors) {
0 commit comments