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 7548559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:43:45+00:00 2026-05-30T09:43:45+00:00

This is bizarre – a script on my page is breaking in Safari 5.0.5

  • 0

This is bizarre – a script on my page is breaking in Safari 5.0.5 due to a “syntax error,” but the same script works perfectly on another machine running Safari 5.0.6, and a third machine running Safari 5.1.

I can’t share the full script, but the line in question is:


$("").attr({href: "#", "data-id": value.aid, class: "artist"}).text(value.artist).wrap("").parent().fadeIn("fast").appendTo(list);

The exact error is:

SyntaxError: parse error

And I’m using jQuery 1.7.1, the current version, which is listed as compatible with Safari 5.0.x.

Any ideas what the “parse error” would be, given that the script does work fine in newer versions of Safari?

  • 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-30T09:43:46+00:00Added an answer on May 30, 2026 at 9:43 am

    I got it – instead of adding the class inside attr(), I did it like this:


    $("").attr({href: "#", "data-id": value.aid}).addClass("artist").text(value.artist).wrap("").parent().fadeIn("fast").appendTo(list);

    @Ustun, I imagine your way would work too.

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

Sidebar

Related Questions

I am having this bizarre error and I don't know what to do. This
I am facing this bizarre problem in my asp.net mvc application: In one page
I know this sounds bizarre, but it is true. I have a simply WPF
Possible Duplicate: Testing use of NSURLConnection with HTTP response error statuses This is bizarre;
I know this question sounds bizarre, but that's what my manager told me. When
The bizarre symptom I'm seeing on this page (only when viewing with IE 6)
This is bizarre, but I am hoping someone can help me out. I have
This error is just bizarre, my code compiles fine, I can see there are
I'm encountering this bizarre problem: the same code produces different results in Native Java
I'm encountering something a bit bizarre, but maybe someone else came across this before.

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.