Hi all,
The issue motivating a behavioral result rather than a raw DOM node for the DOM construction methods is that style changes may require reconstruction of the DOM node.
Most style updates were handled destructively inlace (e.g., {color: myColorB}). However, if the style object was a behavior ( styleB ) and the set of properties changed, the object would be reconstructed to ensure correct handling of attributes that are no longer specified (e.g., styleB = {fontSize: 2} says nothing about color). A smarter version might be inplace by diffing the two objects and somehow inferring the default value, but that seems hard.
- Leo