Skip to content

Commit a68c0b3

Browse files
committed
Read properties off of proto during configuration.
1 parent 6fc567f commit a68c0b3

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/standard/configure.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,12 @@
101101
this._configureProperties(this.behaviors[i].properties, config);
102102
}
103103
// prototypical behavior
104-
this._configureProperties(this.properties, config);
104+
// Read `properties` off of the prototype, as an concession to non-spec
105+
// compliant browsers where a.) HTMLElement's have a non-spec `properties`
106+
// property, and b.) the `properties` accessor is on instances rather
107+
// than `HTMLElement.prototype`; going under the instance to the prototype
108+
// avoids the problem.
109+
this._configureProperties(this.__proto__.properties, config);
105110
// TODO(sorvell): it *may* be faster to loop over _propertyInfo but
106111
// there are some test issues.
107112
//this._configureProperties(this._propertyInfo, config);

0 commit comments

Comments
 (0)