Giter Site home page Giter Site logo

New Firefox bug about jquery-csv HOT 7 CLOSED

evanplaice avatar evanplaice commented on June 27, 2024
New Firefox bug

from jquery-csv.

Comments (7)

evanplaice avatar evanplaice commented on June 27, 2024

From [email protected] on October 16, 2012 16:05:26

This is also an issue with IE (tested in IE9 on win7), like the above adding quotes fixes the issue.

from jquery-csv.

evanplaice avatar evanplaice commented on June 27, 2024

From [email protected] on October 16, 2012 20:52:06

Damn... I thought we had this bug nailed already. You can see the details in bug 5 .

Chrome marks empty values as undefined while FireFox and IE use an empty string instead. So, both need to be tested for.

I may have changed something along the way that broke it again. Let me see if I can back-track to see if the previous fix was implemented properly and passes all the tests.

Give me a little time to get another test collection up and running the full gamut of RFC 4801 rules.

from jquery-csv.

evanplaice avatar evanplaice commented on June 27, 2024

From Thanpolas on October 24, 2012 05:27:59

+1 I have the same issue, glad you are on it Evan.

I'd fix it but i am not sure what exceptional cases you are handling by examining the first match (m1) on the replace callback function...

It looks like m2 is what we need in both cases, why not use that?

from jquery-csv.

evanplaice avatar evanplaice commented on June 27, 2024

From [email protected] on October 24, 2012 09:30:28

@-Thanpolas According to the tests, m2 should be working fine in its current state. As a temporary stopgap, I'll try releasing a fix to handle it the same way as m1 was patched previouslyI get the feeling that it will still fail under some circumstances.

I have tried like hell but I'm seeing some very bizarre behavior that indicates a deeper issue with Firefox's RegEx implementation. Long story short, just simply evaluating a match (ie using an 'if statement') mutates it somehow. As soon as I can isolate it completely, I'll be filing a bug upstream for their devs.

It is literally not possible to get all test cases to bass in both Chrome and Firefox (believe me, I've tried). Not without adding browser detection kludge. For the sake of quality in the long term I'd rather not go that route.

To avoid future problems and provide a parser that is more stable and easier to fine-tune I sill be ditching the monolithic regex match and replacing it with a FSM much like the one used in the line splitter.

Either way, I'll let you know when I have some code available to test.

from jquery-csv.

evanplaice avatar evanplaice commented on June 27, 2024

From [email protected] on October 24, 2012 19:22:37

OK, screw using a monolithic regex for parsing CSV entries. Amazingly, I was able to roll out a new ND-FSM (Non-Deterministic Finite State Machine) entry parser with a quickness.

No more browser inconsistency pain...

It doesn't provide support for custom delimiter/separator characters yet and custom escape char support is no longer an option (it was kinda pointless to begin with). As soon as I have them working again, I'll drop the 0.65 release.

In the mean time, if you aren't using non-default delimiter/separator chars, feel free to pull the latest from the repository.

Note: The online testing and examples run the source directly from the repository, so that's another good place you can try it out.

Status: Fixed

from jquery-csv.

evanplaice avatar evanplaice commented on June 27, 2024

From [email protected] on October 26, 2012 22:40:22

Owner: [email protected]
Labels: -Priority-Medium Priority-Critical

from jquery-csv.

evanplaice avatar evanplaice commented on June 27, 2024

From [email protected] on November 01, 2012 21:14:27

This issue was closed by revision df79574 .

from jquery-csv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.