Netflix / x-element

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

XElement should warn authors when shadowing asymmetric inherited attributes. #67

Closed theengineear closed 3 years ago

theengineear commented 3 years ago

While many attributes have a simple relationship to properties (e.g., .title >> "title"), there isn't a clear standard for naming conventions when it comes to properties reflecting to attributes. Some interesting cases:

class <<>> .className
contenteditable <<>> .contentEditable
aria-valuemin <<>> .ariaValueMin
itemscope <<>> ???

XElement should attempt to WARN authors when they're inadvertently shadowing attribute interfaces based on mappings between attributes and property names.