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, but somehow I feel uncomfortable with it. I've been using Oslows
DOM builder which uses arrays and objects to express the desired DOM up to
now and somehow I prefere it, because it doesn't need to parse any strings
before it starts building Objects.
Actually a mixture of both would be cool: [...]
Some good points! I hope Josh keeps them in mind while messing around
with grouping. It makes sense to use JavaScript syntax where pure CSS
isn't enough to express the desired structure, though it breaks a bit
with the advantages of a (potential) domain specific language. CSS is
for selecting DOM elements, is it better to mix it with other languages
where necessary to create elements or is it better to extend the language?
--
Jörn Zaefferer
http://bassistance.de