Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6840157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:48:26+00:00 2026-05-26T23:48:26+00:00

While I was fixing some js syntax to avoid problems with minification I spotted

  • 0

While I was fixing some js syntax to avoid problems with minification I spotted this block in a third-party js library:

if ('\u0041' == 'A') {
   var u = n.userAgent;
   if (u.indexOf('Safari') == -1) { 
     [...] 
   }
}

The block has no else condition following, and basically checks for browser type and version… anyway I don’t see why it should compare between the unicode code for the ‘A’ character and, well, the ‘A’ character! :/

Has anybody encountered a condition like this before? Am I missing something or it’s useless?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T23:48:27+00:00Added an answer on May 26, 2026 at 11:48 pm

    It must be a pretty old library which test javaScript’s support for Unicode.

    For an old Browser like Netscape Navigator 4, it only supports Latin-1 encoding '\xXX' other than full Unicode support '\uXXXX'

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've run into another problem while fixing up my game to use this library.
I have this open-source library that I'm having some trouble fixing a problem... This
This morning, while trying to migrate some files from my test server to my
I am using .ui-helper-clearfix { display: inline-block; } in jquery_custom_datatable.css and jquery-ui-1.8.12.custom.css while fixing
While setting up CruiseControl, I added a buildpublisher block to the publisher tasks: <buildpublisher>
I have been coding with C# for a good little while, but this locking
I am programatically making some LinkButtons, and they worked fine for a while, but
While I was working on a feature_branch I ended up fixing a bug for
All of a sudden I start getting this error while trying to open 2
While editing and fixing up code I have thought that sometimes it would be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.