Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
2

Ilustrator saving SVG missing data-name attribute in exported SVG

Community Beginner ,
Aug 01, 2024 Aug 01, 2024

In Illustrator 28.5 and above an SVG export longer is emitting the data-name attribute. It contained an exact copy of the text in the corresponding layer name. 


The file ID43_V1.1.i.28.4.1.svg saved by Illustrator 28.4.1 and the file ID43_V1.1.i 28.6.svg  was saved by Illustrator 28.6.

Line 54 in ID43_V1.1.i.28.4.1.svg has the line:
<rect id="center_top_leading:_235_pt" data-name="center, top, leading: 235 pt" class="cls-3" x="21.4361" y="1196.6758" width="1691.3774" height="217.0928"/>.

If you open the AI file ID43_V1.1.ai you will see a layer with the name: center, top, leading: 235 pt. 

The corresponding line in the file ID43_V1.1.i 28.6.svg on line 31 looks like:
<rect id="center_x2C__top_x2C__leading:_235_pt_00000142166334487451118750000006251493092934391439_" x="21.4361" y="1196.6758" style="&st5;" width="1691.3773" height="217.0928"/>

This illustrates (pun intended) the difference between the different versions of Illustrator.  
Our software relies on the data-name attribute being there and having the same text as the layer name. Is it possible to restore this functionality in the next release of Illustrator?

Our current workaround is to advise clients to use an earlier version before Illustrator 28.5. However, this will work in the short term but we need the backwards compatibility long term.

 

TOPICS
Bug , Import and export
4.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Aug 12, 2024 Aug 12, 2024

Hello @BSTORM,

Thanks for your patience. Our product is aware of the problem and is currently investigating it. Improvements to this will be made in a future release. Also, kindly upvote this UserVoice for the request (https://illustrator.uservoice.com/forums/601447-illustrator-desktop-bugs/suggestions/48696056-when-using-export-as-svg-in-28-5-and-28-6-undersc) and add your comments there. Doing this will help us prioritize this request, and you will be notified of any updates.

Feel free to reach

...
Translate
Adobe
Adobe Employee ,
Aug 05, 2024 Aug 05, 2024

Hello @BSTORM,

Thanks for reaching out and sharing your concern. Kindly allow me some time to check this with the team. Feel free to reach out if you have more questions or need assistance. We'd be happy to help.

 

Thanks,
Anubhav

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 12, 2024 Aug 12, 2024

Any news about the resolution of this matter? We're eager to stay informed.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Aug 12, 2024 Aug 12, 2024

Hello @BSTORM,

Thanks for your patience. Our product is aware of the problem and is currently investigating it. Improvements to this will be made in a future release. Also, kindly upvote this UserVoice for the request (https://illustrator.uservoice.com/forums/601447-illustrator-desktop-bugs/suggestions/48696056-when-u...) and add your comments there. Doing this will help us prioritize this request, and you will be notified of any updates.

Feel free to reach out if you have more questions or need assistance. We'd be happy to help.

 

Thanks,
Anubhav

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 09, 2025 Sep 09, 2025

I had a similar problem. Not maybe the 100% same problem, but when you activate minify, the data name attributes disappear and they don't come back even if you disable minify. And then look at the produced SVG - somehow it doesn't update. You actually have to save it once with the new option where minify is disabled, and then go into the panel again. Only then will you see in the SVG that the data names are back.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 09, 2025 Sep 09, 2025

my problem is i spent time adding tags and keywords and metadata to the SVGs and when i open them in illustrator and save. no metadata is retained. even thow its in illustrator when i open the SVG. 

Illustrator is open almost 24/7 and just about the same for Bridge and Photoshop
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Sep 09, 2025 Sep 09, 2025
LATEST

Hi @bluebrad,

 

Thanks for jumping in and sharing your experience. To help me check this further with the team, could you please confirm the version of Illustrator you're working with and the details of your operating system? If this happens with a particular file or with all the workflows. If possible, a short screen recording showing the behavior would also be super helpful. That way, I can get a clearer picture and pass it along for deeper review.

 

Looking forward to your update.

Abhishek

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines