This "bug" is for IE only. If you try it with FF or Opera for instance, you'll see that it works as expected. So far, I have no any ideas on how to bring it to work in IE, since this browser returns
innerHTML property as a single string without line breaks ("\n") at all.
I am still learning English