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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:32:56+00:00 2026-05-28T06:32:56+00:00

Is it possible to include jQuery SVG source code in a standalone SVG document?

  • 0

Is it possible to include jQuery SVG source code in a standalone SVG document? I mean like:

<script type="application/javascript">
    <![CDATA[
        // jQuery SVG code
    ]]>
</script>

I need the SVG document to be independent of other files. (copy it elsewhere and it will work without any other files, internet connection,…)
Trying so, I get:

error on line 383 at column 16623: StartTag: invalid element name

Which is:

b='<'+a.nodeName;

How to make it seem as a string, not a start tag?
I’m unable to make it work by commenting out CDATA parts or the script as whole (I have tried //, /* */ and <!-- -->). I guess I’m missing something simple here…

Here is an example SVG document with a simple JS script with jQuery 1.6.4 and jQuery SVG 1.4.4 source codes: http://dl.dropbox.com/u/5552845/test.svg
Note: moving jQuery SVG source code out will lead to perfectly working SVG document

  • 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-28T06:32:57+00:00Added an answer on May 28, 2026 at 6:32 am

    jQuery SVG includes the string ‘]]>’, which ends the cdata block.

    If you change ‘]]>’ to ‘]’+’]>’ the file becomes valid.

    see http://dl.dropbox.com/u/3885046/test.svg

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

Sidebar

Related Questions

Is it possible to INCLUDE other mysql scripts in a composite script? Ideally I
Is it possible to include view code in a plugin, such that an app
Is it possible to integrate Jquery with Eclipse/MyEclipse? By integrating i mean, if i
I have this ajax jquery code: var form = document.getElementById('frm'); var data_string = form.serialize();
Is it possible to create jquery widget include files that ONLY contain one specific
Is it possible to extend jQuery 1.3 to include the parseJSON function from 1.4.1+,
I'm wondering if it is possible to insert something like the following with jquery
Possible Duplicates: Include a JavaScript file in a JavaScript file How to include a
I am building a web application in which I would like to include the
I'm developing some script, which developers will include on their pages. I need jQuery

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.