You really think split/join is faster than replace? I would have
thought the opposite, since split/join actually has to build arrays,
while replace can simply accumulate a new string as it goes along.
On 2006-11-15, at 00:17 EST, Max Carlson wrote:
You might be able to get better performance with array.split
('\n') / array.join('<br\>') instead of regexes.
Otherwise, approved.
P T Withington wrote:
Change 20061114-ptw-y by [EMAIL PROTECTED] on 2006-11-14
17:53:22 EST
in /Users/ptw/OpenLaszlo/legals-2/WEB-INF/lps/lfc
Summary: Add quirk to translate ' to '
Bugs Fixed:
LP-2880 'window in component sampler doesn't display apostrophes
in IE 6, dhtml'
Technical Reviewer: max (pending)
QA Reviewer: bmandel (pending)
Doc Reviewer: n/a
Details:
Use an alternate strategy for inner_html_strips_newlines, since
that was causing HTML entities to not be interpreted in IE. Add
another quirk to deal with IE HTML not supporting '
(which is
valid, it's just that all the other browsers do).
Tests:
examples/components/window_example.lzx?lzr=dhtml correctly shows
apostrophes and double quotes as expected in IE, Safari, and
FireFox.
Files:
M kernel/dhtml/LzSprite.js
M kernel/dhtml/LzTextSprite.js
Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20061114-
ptw-y.tar