DOMDom: More DOM, Less DOM

Zach Leatherman has created another DOM creation class, DOMDom, (with support for HTML Fragments) that uses
the CSS query language. But instead of using the language to query nodes, it is used to create nodes.
To make <div style=”width:100%;border:1px solid blue” class=”testClass”><a href=”http://www.google.com/”><span>Google</span></a></div>, you’d have to do the following in other packages:
DomHelper:
PLAIN TEXT
JAVASCRIPT:

 

Ext.DomHelper.append( myDiv, {

  [...]

More: continued here

Leave a Reply

You must be logged in to post a comment.