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
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
> 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
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
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
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,
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
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
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
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
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
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
>
>
I really like this idea. It could be very powerful.
~Sean
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
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
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
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
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
18 matches
Mail list logo