On May 25, 2006, at 12:06 PM, Zachery Bir wrote:
> > On May 25, 2006, at 8:00 AM, coredump wrote: > >> Yes, it worked like a charm for my <br> tags, but if I allow <a >> hrefs... and <b></b> the thing start to get ugly. >> Mainly because <br> is a simple tag, but the other ones have opening >> and ending parts... >> >> Any other ideas? On how to spit DOM vrom HTML quickly? :P > > myMochiKitDOMNode.innerHTML = stuffIGotFromTheDatabase; MochiKit.DOM deals in literal text and DOM nodes, not HTML. Zac's suggestion is absolutely the right way to do it. To stuff HTML in something, always use innerHTML. -bob --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit -~----------~----~----~----~------~----~------~--~---
