Bug 18491
| Summary: | JavaScriptCore should treat nbsp just like any other space | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Eric Seidel (no email) <eric> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | Normal | CC: | ap, barraclough, mjs, ovafai, zwarich |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | PC | ||
| OS: | OS X 10.5 | ||
| URL: | https://bugzilla.mozilla.org/show_bug.cgi?id=23613 | ||
Eric Seidel (no email)
JavaScriptCore should treat nbsp just like any other space
https://bugzilla.mozilla.org/show_bug.cgi?id=23613
is the mozilla bug. Seems we have the same bug.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Eric Seidel (no email)
http://eseidel.com/webkit_bugs/18491/nbsp.html
Is a test case. Uploading said test-case to bugzilla seems to cause a 500 error. Not sure why.
Eric Seidel (no email)
The right fix seems to be to hack dftables.
Alexey Proskuryakov
We have a (failing) test for this in ecma_3/Unicode/uc-002.js. Note that uc-001.js also fails, and that is tricky, see bug 4931 and bug 10183.
Cameron Zwarich (cpst)
The regular expression issue is bug 20966, and was fixed by the introduction of WREC on 32-bit x86 (or at least Mac and Windows), and by r36612 on other platforms. Is there any other case where we treat a non-breaking space differently, or can this bug be closed?
Gavin Barraclough
nbsp works in regular expressions, source text, the bugs Alexey linked to are marked fixed, and ecma_3/Unicode/uc-002.js passes. Works for me.