This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
In Section 4, custom element constructor generation algorithm, Step 5: > "Set CONSTRUCTOR as the constructor property on PROTOTYPE." If the PROTOTYPE is a built-in object like HTMLSpanElement.prototype, the algorithm overwrites its "constructor" property, which isn't good.
I think that we should just forbid which has "constructor" property for the prototype parameter. That means we cannot use HTMLSpanElement as an default. The default will be then something like Object.create(HTMLSpanElement.prototype).
I see what you're saying. If the user passes in an object that is already in the middle of a prototype chain, the algorithm will be breaking it.
hat you're saying. If the user passes in an object that is already in > the middle of a prototype chain, the algorithm will be breaking it. Right. Basically, we shouldn't overwrite any existing properties.
Merging this bug with 20686. *** This bug has been marked as a duplicate of bug 20686 ***