Bug 18491

Summary: JavaScriptCore should treat nbsp just like any other space
Product: WebKit Reporter: Eric Seidel (no email) <eric>
Component: JavaScriptCoreAssignee: 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

Description Eric Seidel (no email) 2008-04-14 08:45:46 PDT
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.
Comment 1 Eric Seidel (no email) 2008-04-17 07:42:49 PDT
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.
Comment 2 Eric Seidel (no email) 2008-04-17 07:49:42 PDT
The right fix seems to be to hack dftables.
Comment 3 Alexey Proskuryakov 2008-04-21 09:06:33 PDT
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.
Comment 4 Cameron Zwarich (cpst) 2008-09-18 04:04:12 PDT
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?
Comment 5 Gavin Barraclough 2011-06-15 01:15:18 PDT
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.