[10:46]<hannesw__> it's always those pesky details... [10:46]<hannesw__> just spent 2 hours to make sure missing vars are reported properly [10:47]<hannesw__> (not when tinkering in the shell, but yes for modules loaded from shell) [10:49]<hannesw__> require('missingvar'); foo = 1 [10:49]<hannesw__> js: warning: "missingvar.js", line 1: Assignment to undeclared variable x [10:49]<hannesw__> 1 [12:08]<simono> :) [12:08]<simono> missingvar.js is not commited? [12:09]<simono> i run rhino in strict mode... not sure what else that does, but missingvars are reported [12:11]<simono> request param parsing *yey* [12:59]<hannesw> well it's time i wrote an ng status update... [12:59]<hannesw> but there's always one next thing to hack on :) [13:35]<simono> lay me: which of helma's encode functions actually does what encodeuricompenent does :) [13:35]<simono> lazy me [13:36]<simono> oh that one probably: encodeURIComponent [14:26]<hannesw> i think encodeURIComponent is always UTF8 [14:27]<hannesw> the helma ones (encode?) uses the app's encoding, and there may be differences with +/space conversion... [14:34]<simono> yeas, encodeURIComponent is what i wanted for putting a string into an URI .. not surprisingly [14:35]<simono> encode prepares for html output... replaces /n with <br> and the likes [14:37]<simono> this always confuses me and i end up reading the sources... encodeUri, encodeUriComponent, escape, encode, encodeXml, encodeForm [14:42]<simono> when outputting xhtml we actually to res.encodeXml() which is perfect according to spec [14:43]<simono> but IE does not understand ' (produced by encodeXml) so we have to replace(/'/g, "'") [14:46]<simono> no sorry ' is not a valid html entity, so IE is right and everybody else just not so strict :) http://www.w3.org/TR/html4/sgml/entities.html [14:50]<hannesw> then shouldn't we drop '? [14:53]<simono> i'm not sure. the helma docs specifically mentions "single and double quotes" are getting encoded [14:54]<simono> ' would be an alternative [14:54]<simono> apostroph must be encoded somehow, else xml is invalid [14:54]<simono> http://fishbowl.pastiche.org/2003/07/01/the_curse_of_apos/ [14:56]<simono> i'll talk to robert about this on monday and get back to you