[Kss-devel] replaceInnerHTML fails with IE7 with certain strings

Hedley Roos hedley at upfrontsystems.co.za
Mon Jan 14 09:19:38 CET 2008


Hi all

(A)
s = '''some string'''

(B)
s = '''
bla'''

The call core.replaceInnerHTML(someselector, s) works for A but not B. 
This affects only IE7 (not sure about IE6, FF is fine). The fix is 
trivial (strip s before the replace call), but why does this happen? 
This can really trip up people since IE doesn't give a Javascript error.

Hedley


More information about the Kss-devel mailing list