brianleroux / xui

A tiny javascript framework for mobile web apps.
http://github.com/xui/xui
391 stars 159 forks source link

s60 regex unicode #50

Closed nulle closed 13 years ago

nulle commented 13 years ago

Due to some nokia regex bug that does not like unicode, in the dom function wrap (line 131), regular expression /^<([A-Z][A-Z0-9])([^>])>([\s\S]*)<\/\1>/i fails even on as simple tag as this <div>š</div>, or in case of more nested tags returns wrong regexp.exec values, which can and usually does lead to some funky rendering.

While this is not exactly xui bug per se, I was wondering if anyone has / could come up with some reasonable solution for this symbian quirk and, of course, add it to the source ;)

p.s. Tested on nokia 5800 (s60v5)

brianleroux commented 13 years ago

no fix here for that...we'd be happy to accept a patch on github.com/xui/xui tho