Jörn Zaefferer wrote:
This looks really interesting:
http://www.zachleat.com/web/2007/07/07/domdom-easy-dom-element-creation/
Of course his proposal for porting doesn't quite work out with jQuery,
but a port that is integrated into jQuery's API would be really cool.
Using selectors for creation is *really* slick!
Although I'd stick to correct CSS selectors:
'input[name="myTextBox"][type="text"][maxlength="5"]'
instead of
'input[name="myTextBox",type="text",maxlength="5"]'
And for CSS why not using (seems to be more consistent to me):
'div[style="height: 80px; color: #f90; border: 1px solid #000"]'
instead of
'div{height=80px,color=#f90,border=1px solid #000}' ?
Really good stuff nonetheless! I'd love to see that ported!
--Klaus