Replacing all ' ' with ' ' in a text using regexp object, replaces the ' ' with extended ascii charecter 160 which is \u0A0. It should replace them with ascii 32. I think   is considered as a single character when used with regexp object which should not be the case.
U+00A0 is the code point of the non-breaking space, which suggests to me that no replacing is going on. Can you please attach an example of code that does not work as you expect?
Created attachment 20946 [details] Test case for the problem The additional interesting thing is that putting couple of carriage returns after the </body> tag is included in document.body.innerHTML. May be a separate bug though.
As you can see from the test case the ' ' is replaced with character code 160. It should have been all 32.
*** This bug has been marked as a duplicate of 11947 ***