Agreed! In addition, I'd like to see the nested element syntax slightly cleaned up:
'div#parent>div#child>div#grandchild' and 'div#parent>div#child1,div#child2' I like this much better than all of that bracketing mess he shows. On Jul 12, 4:57 pm, Klaus Hartl <[EMAIL PROTECTED]> wrote: > 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