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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T06:32:10+00:00 2026-06-08T06:32:10+00:00

I have two jsFiddles: http://jsfiddle.net/kRyhw/3/ http://jsfiddle.net/kBMSa/1/ The first jsFiddle shows code which takes HTML

  • 0

I have two jsFiddles:

  • http://jsfiddle.net/kRyhw/3/
  • http://jsfiddle.net/kBMSa/1/

The first jsFiddle shows code which takes HTML and appends it to my ul element. Note that the svg’s ‘X’ icon appears.

I tried to rewrite this code using jQuery’s element creation technique, but the path never shows up. If I replace the appending iconPath code with .text(“Hello”) I see Hello appear. I do not see any CSS differences between the two versions, though.

Could someone shed some light on what is going on?

  • 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-06-08T06:32:11+00:00Added an answer on June 8, 2026 at 6:32 am

    it’s parsed as HTML using the browser’s innerHTML property. innerHTML can’t parse SVG or other non-HTML content…

    I guess this article will put some shadow on your questions. It has an example you are looking for.
    jquery's append not working with svg element?

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

Sidebar

Related Questions

http://jsfiddle.net/pC6fC/1/ I have two divs, one above the other. When the first animates, which
I have two examples on jsFiddle: http://jsfiddle.net/9uhfX/1/ http://jsfiddle.net/9uhfX/2/ Example 1 In the first one
Code example: http://jsfiddle.net/MhEPw/1/ I have two jQuery Deferred objects. I want to have more
I have two select boxes with dates. See here the jsfiddle: http://jsfiddle.net/egrba/ The people
I have this script http://jsfiddle.net/gphp/ZMmRv/4/ I have two events: 1 - the div is
I have two carousels on one page but unfortunately they copy each other. http://jsfiddle.net/seanjacob/tB6y5/
I have a two column layout: http://jsfiddle.net/KqQ42/1/ Now I would like that the left
I have following fiddle: http://jsfiddle.net/BFSH4/ As you see there are two issues: The h1
Please consider the following: http://jsfiddle.net/CASM6/9/ I have two rows of tabs. there are two
http://jsfiddle.net/AYPze/9/ In this example I have two similar divs with the same goal. Bind

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.