html-traits
A JavaScript/HTML library that adds behaviors to existing HTML elements via a `traits` attribute instead of the web components `is` attribute. Designed for progressive enhancement: elements keep working when JavaScript is disabled or broken, and gain behaviors when JS runs—for example an `expando` trait that makes a textarea auto-expand, or a `character-limit` trait with a `data-character-limit="200"` attribute that turns the box red past a threshold. Behaviors compose as plain attributes on the element, avoiding nested web component markup and shadow-DOM reimplementation of native element behavior.