I have been using prototype.js in a web application. I am populating some Divs dynamically, on selecting some radio buttons. Before populating contents in Div, I am clearing previous contents by using prototype's update method as -
$('item').update('');
In IE, this puts a line break automatically but not in Firefox 3.5. So, to work it in same manner as IE, I have change the code as -
$('item').update(' ');
Now, this worked for me as expected. But, generally " " is being used with a semicolon ($nbsp;). I want to know, if there can be a failure of this code. For example, is there any chances where   will be display instead of a blank space? But some browsers might be smart enough to detect the coding error by the programmer and autocorrect it.