[jQuery] Re: Interested in porting another DOM creation plugin?

2007-07-14 Thread Sean Catchpole
I know several of you are working on creating a plugin for this. I thought I'd join the fun. =P The syntax might be a little different, so I don't want to discourage anyone from making their own. Check out the source here: http://jqueryjs.googlecode.com/svn/branches/sean-dev/jquery.dom.js And a d

[jQuery] Re: Interested in porting another DOM creation plugin?

2007-07-13 Thread Karl Swedberg
On Jul 13, 2007, at 5:56 PM, Felix Geisendörfer wrote: No kidding. I was disappointed to read about some of the missing things from javascript's implementation of regular expressions. No named groups and no look behinds. I'm still very new to javascript as a language, so I'm still feeling

[jQuery] Re: Interested in porting another DOM creation plugin?

2007-07-13 Thread Felix Geisendörfer
> No kidding. I was disappointed to read about some of the missing > things from javascript's implementation of regular expressions. No > named groups and no look behinds. I'm still very new to javascript as > a language, so I'm still feeling my way around some things. I'll post > some resu

[jQuery] Re: Interested in porting another DOM creation plugin?

2007-07-13 Thread George Adamson
I thought perhaps it could be a method of $, such as $.dom(...) Certainly a superb technique. Looking forward to it. George Josh Bush wrote: > > > It seems like a very striaghtforward way to create dom elements. I > like it. What would you make the method name? $$ instead of $? > > On

[jQuery] Re: Interested in porting another DOM creation plugin?

2007-07-13 Thread Josh Bush
No kidding. I was disappointed to read about some of the missing things from javascript's implementation of regular expressions. No named groups and no look behinds. I'm still very new to javascript as a language, so I'm still feeling my way around some things. I'll post some results as soon as

[jQuery] Re: Interested in porting another DOM creation plugin?

2007-07-13 Thread Jörn Zaefferer
Christof Donat wrote: Hi, 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. A nice Idea,

[jQuery] Re: Interested in porting another DOM creation plugin?

2007-07-13 Thread Jörn Zaefferer
Josh Bush wrote: I think I may dig around the jQuery source to get some hints on parsing elements. I've yet to even take a peek inside! Beware of those regexp monsters! They can eat your brain. But there is nothing like a good brain eater for parsing strings... -- Jörn Zaefferer http://bass

[jQuery] Re: Interested in porting another DOM creation plugin?

2007-07-13 Thread Christof Donat
Hi, > 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. A nice Idea, but somehow I feel uncom

[jQuery] Re: Interested in porting another DOM creation plugin?

2007-07-13 Thread Sean Catchpole
I have better suggestion for children than the one presented in that article. DOMdom way: { 'div': [ 'span', 'span' ] } my suggestion: "div (span,span)" The ( and ) are for grouping. This allows for multiple children, making text easy: $("body").domAppend("p (#this, b #is, #fun)"); ~Sean

[jQuery] Re: Interested in porting another DOM creation plugin?

2007-07-13 Thread Josh Bush
I had some mild success last night with implementing a version of this per the items Klaus and I discussed. It's really messy and very brittle at this moment or I would share it. I'll poke around a bit more this weekend and see what I can make of it. I think I figured out why the original author

[jQuery] Re: Interested in porting another DOM creation plugin?

2007-07-13 Thread Jörn Zaefferer
Jonathan Sharp wrote: Turns out he works for the same company I do... I'll see what I can do... Cool. When tightly integrated into jQuery, maybe with an API similar to FlyDom ($(...).createAppend(...)) and the improvements Josh and Klaus proposed, this could be really neat. String parsing mayb

[jQuery] Re: Interested in porting another DOM creation plugin?

2007-07-12 Thread Josh Bush
On Jul 12, 5:15 pm, Klaus Hartl <[EMAIL PROTECTED]> wrote: > Josh Bush wrote: > > 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' > > The latter could become > >

[jQuery] Re: Interested in porting another DOM creation plugin?

2007-07-12 Thread Sean Catchpole
I really like this idea. It could be very powerful. ~Sean

[jQuery] Re: Interested in porting another DOM creation plugin?

2007-07-12 Thread Klaus Hartl
Josh Bush wrote: 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' The latter could become 'div#parent > div#child1 + div#child2' to remain in CSS selector syntax? --Klaus

[jQuery] Re: Interested in porting another DOM creation plugin?

2007-07-12 Thread Josh Bush
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 Z

[jQuery] Re: Interested in porting another DOM creation plugin?

2007-07-12 Thread Klaus Hartl
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

[jQuery] Re: Interested in porting another DOM creation plugin?

2007-07-12 Thread Josh Bush
It seems like a very striaghtforward way to create dom elements. I like it. What would you make the method name? $$ instead of $? On Jul 12, 4:28 pm, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > This looks really > interesting:http://www.zachleat.com/web/2007/07/07/domdom-easy-dom-element-crea

[jQuery] Re: Interested in porting another DOM creation plugin?

2007-07-12 Thread Jonathan Sharp
Turns out he works for the same company I do... I'll see what I can do... -js On 7/12/07, Jörn Zaefferer <[EMAIL PROTECTED]> 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 o