DOM Builder
Posted on 26th April, by max in Code. Comments Off
The functions simply return a DOM node that you can append to whatever part of the document you like. Each function takes an number of arguments. The first argument can contain an object literal of attribute/value pairs if you need to specify attributes but if you don’t need attributes you can just leave it out. Otherwise it creates text nodes of any text you give it and appends any DOM nodes you give it. That’s it.
Website: http://www.vivabit.com/bollocks/2006/04/06/introducing-dom-builder