Summary: | replacing with spaces using regexp creates inconsistent result | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Joshua <admin> | ||||
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED DUPLICATE | ||||||
Severity: | Major | CC: | ap, mrowe | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Attachments: |
|
Description
Joshua
2008-04-27 02:02:57 PDT
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. |