romancow / dimdom

A small, simple way to represent a DOM - a “diminished DOM”
MIT License
0 stars 0 forks source link

Bind to created nodes #5

Open romancow opened 8 years ago

romancow commented 8 years ago

We could bind to created nodes and update them to match their DimDom object when the DimDom object is altered. For changing something like the name or namespace, would probably have to remove the children, create a new element, then re-add the children. Or we could just make those properties read-only.

Might want to make something like this opt-in, since someone might not want to use it - e.g. because of the extra overhead or they are using the same DimDom instance to "stamp-out" multiple cookie-cutter element structures.