Closed klebba closed 3 years ago
A couple notes on this one:
id
shadows the HTMLElement
prototype, the current version of x-element will now warn about that issue.""
or if an integrating component was setting "id".In general, we probably don't want to shadow "id" though.
I'm going to close this down since I believe this is a non-issue with the most recent release.
Sample case:
If we inspect the
id-number-bug
in the DOM theid
property will be0
instead ofundefined
which is unexpected. If we inspect thevalue
property, it will beundefined
. It appears that shadowingid
property of an element is a special case, though it's not obvious why