Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Detect buggy String#trim

#55

Juriy confirmed some browers who bug out on regexp \s also bug out on whitespace chars in native String#trim. We should add a check for that and fix for consistency.

Reported by John-David Dalton · August 24th, 2009 @ 06:48 PM

State: resolved
Milestone: none
Assigned to: Juriy Zaytsev Juriy Zaytsev

Activity

  1. Juriy Zaytsev
  2. John-David Dalton
  3. LolaLi
    LolaLi

    Thank you for this ticket. I am a writer and write essays and research articles, if interested, visit my website https://papercoach.net/

    November 5th, 2019 @ 12:10 PM

  4. Theresa Headrick
    Theresa Headrick

    You have given good information in your post. I liked it very much. That's why I also inform you that when you do writing, there are mistakes in it and you are not able to get good grades, for this, I give you the link https://www.graderonline.com/ so that you can easily You can get a grade paper along with it. and your work becomes easier

    November 26th, 2022 @ 03:40 AM

  5. donnaviliams
    donnaviliams

    Hello! Visit our free online tool https://adverbchecker.com to receive a writing analysis right away! Every grammatical error you've made will be quickly and precisely identified by our technology. You may accomplish this without decreasing the caliber or degree of professionalism of your work, enhancing any form of material.

    December 28th, 2022 @ 02:59 PM

  6. Laura Smith
    Laura Smith

    Juriy identified that some browsers have issues with both \s in regular expressions and whitespace handling in String#trim. We should add a check for these browsers and implement a fix to ensure consistent behavior across all platforms. This will help maintain reliable whitespace handling in our code.

    Link

    January 1st, 2025 @ 05:24 AM

  7. Laura Smith
    Laura Smith

    Juriy pointed out that certain browsers malfunction with both \s in regex and whitespace in String#trim. To ensure consistent behavior, we should implement a check for these browsers and apply a fix to handle whitespace more reliably across different environments.

    Link

    January 1st, 2025 @ 05:25 AM

  8. LauraSmith
    LauraSmith

    Juriy pointed out that some browsers that fail with the \s regex also mishandle whitespace characters in String.trim(). It’s worth adding a check and fixing this for consistency.

    Link

    December 3rd, 2025 @ 08:11 AM

  9. LauraSmith
    LauraSmith

    Juriy verified that browsers buggy with \s also glitch on whitespace behavior inside String.trim(). This mirrors similar reports from Link1 Link1and deeper explanations in Link2 Link2

    For consistency, both Link3
    and Link4 offer fixes. .

    December 3rd, 2025 @ 08:18 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.