Skip navigation
rootyb-nN6GCZ
Currently Being Moderated

Why does Illustrator mess with my SVG item ID's when I save?

Aug 6, 2012 5:05 PM

Tags: #illustrator #svg

For example, let's say I import a file with the following objects:

 

 

 

 

<a id="1010_2_" xlink:href="#">

  <g>

    <path class="st1" d="M68.929,0.045v5.212c4.221,0,7.642,3.421,7.642,7.641h-7.642v0.832h6 .611v103.806h-1.229h-0.253l-0.022-7.526 h-0.833v7.642c-3.032,0-5.545-1.662-6.78-4.224c-1.256,2.498-3.922,4.22 4-6.907,4.224v-7.642h-0.924v7.525l-0.135,0.001H0V0 L68.929,0.045z"/>

  </g>

</a>

 

 

 

 

When I save in Illustrator, it does this:

 

 

<a id="_x31_010_x5F_2_x5F_" xlink:href="#" >

  <g>

    <path class="st9" d="M68.929,0.045v5.212c4.221,0,7.642,3.421,7.642,7.641h-7.642v0.832h6 .611v103.806h-1.229h-0.253 l-0.022-7.526h-0.833v7.642c-3.032,0-5.545-1.662-6.78-4.224c-1.256,2.4 98-3.922,4.224-6.907,4.224v-7.642h-0.924v7.525 l-0.135,0.001H0V0L68.929,0.045z"/>

  </g>

</a>

 

 

Any thoughts?

 
Replies
  • Currently Being Moderated
    Aug 7, 2012 12:10 AM   in reply to rootyb-nN6GCZ

    Not sure what you expect. ID's are completely arbitrary and as soon as you change anything in AI, it recalculates/ reassigns them following its own internal logic for element IDs. That's just the way it is.

     

    Mylenium

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points