I remember a long time ago about a technology called "behaviors" that allowed you to define a, well, behavior for HTML elements. A way of defining a template for reacting under javascript events and stuff like that. For example, making all buttons on a website toggle between colors onMouseOver and display an alert onClick just by assigning them the behavior myExample1. This helped a lot for code reuse.
I thought the proposal...