[Rails-spinoffs] Re: SAU/Prototype performance

2007-01-07 Thread Marius Feraru


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Colin Mollenhour wrote:
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.

And if we notice how different FF behaves on each platform (comparing to
Opera for instance), the choice becomes even more difficult, at least if we
would have chosen to implement different solutions for each browser/platform.


Take the last step and submit a patch with your results to back it up :)

OK. Submitted as ticket #6937: http://dev.rubyonrails.org/ticket/6937

- --
Marius Feraru
-BEGIN PGP SIGNATURE-

iD8DBQFFoMjOtZHp/AYZiNkRAiUeAKCvKWIGvoYRu6FrEvWWrCCuHaoJzACgr6ZB
ZiiB2wHFNHiXmYilnNig5aw=
=98h3
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
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 rubyonrails-spinoffs@googlegroups.com
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
-~--~~~~--~~--~--~---



[Rails-spinoffs] Re: SAU/Prototype performance

2007-01-07 Thread Fred



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 rubyonrails-spinoffs@googlegroups.com
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
-~--~~~~--~~--~--~---