Colin Mollenhour wrote:
Excellent work! The oneDiv2 function really does shine but considering the prevalence of FF and IE6/7, I would still be hard pressed to choose it over String.replace.
Also consider that while innerHTML has been widely copied, it has no public standard whereas String.replace does. It is known that different browsers will return different innerHTML given identical HTML source or piece of DOM tree. Having it as the basis for a kind of 'normalise' function doesn't make sense - speed should not be the sole criterion. -- Fred --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
