Netflix / x-element

A dead simple starting point for custom elements.
Apache License 2.0
28 stars 12 forks source link

"id" behavior not guaranteed #77

Closed klebba closed 3 years ago

klebba commented 3 years ago

Unexpected key "FooElement.properties.id" shadows inherited interface, behavior not guaranteed.

This warning is somewhat frustrating when I've purposely shadowed id in order to observe and react to changes on this property. I would choose another property name, but deep linking to an anchor like page.htlm#id is intrinsic behavior that I can't easily recreate. The easy workaround is to mirror the attribute for my own purposes, e.g. <element id="foo" my-id="foo" ...>