On Tue, Mar 07, 2006 at 04:36:14PM -0500, Karl Guertin wrote:
> 
> On 3/7/06, Jonathan LaCour <[EMAIL PROTECTED]> wrote:
> > Is something like this desirable?  Is it possible?
> 
> When I'm doing this sort of thing, I tend to do it the innerHTML way.
> I'm pretty sure it'd be possible to generate MochiKit.DOM code from an
> arbitrary template as a Kid serializer. I've thought about doing it
> several times but then I decide it's not worth the trouble.

It really isn't.  I did it and the ticket/code is in the trac.  The problem
is that browsers like IE don't process DOM the same way as html, so a
straight dom serializer will output a lot more whitespace than usual
(because of the autoindenting that kid does).

Now I just use the innerHTML method.  I'm not happy with it (you can't
modify attributes on elements inside the XHTML block), but it's the best I
could find.

Jason

-- 
If you understand, things are just as they are.  If you do not understand,
things are just as they are.

Attachment: pgp0eaaD7o7Pz.pgp
Description: PGP signature

Reply via email to