Bug 18491 - JavaScriptCore should treat nbsp just like any other space
Summary: JavaScriptCore should treat nbsp just like any other space
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL: https://bugzilla.mozilla.org/show_bug...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-14 08:45 PDT by Eric Seidel (no email)
Modified: 2011-06-15 01:15 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.