newsdev / ai2html

A script for Adobe Illustrator that converts your Illustrator artwork into an html page.
http://ai2html.org
Other
897 stars 145 forks source link

ai2html with the same IDs don't load properly #101

Open wmandrews opened 6 years ago

wmandrews commented 6 years ago

Possibly don't rely on IDs?

mbloch commented 5 years ago

Ai2html currently generates ids for many elements under the assumption that when multiple ai2html graphics are embedded on a single page, they have unique 'project' names. (Project names are based on the .ai file name).

So if the same graphic is embedded multiple times, you'll get duplicate ids, and some things might break, including the built-in lazy image loader.

We should look into not relying on ids, like Wilson suggested above.