Welcome to the in5 Answer Exchange! This a place to get answers about in5 (InDesign to HTML5) and make requests.
0 votes
Is it possible to give the divs a name instead of numbering them "item_01" and so on. Names could be used from the script label of a indesign object or object style. I noticed you already use the scriptlabel for the alt-name.
With proper named divs it's much easier to edit the html5.
in feature_requests by (200 points)
  
+1 to this. So that  developers can extend it.

2 Answers

0 votes
 
Best answer
by (197k points)
selected by
0 votes

I appreciate the desire to make the code easier to edit. We're definitely open to suggestions. In this case, there are a few reasons why we've coded it as we have.

The name attribute is only available to form elements in HTML5. The id would be the next likely attribute to use, but it is already used by in5, and it must be unique (which script labels do not).

As you noted in your question the script label is applied to the alt tag, this can be access easily by a developer using the following jQuery syntax

$('[alt=scriptLabelName]')

by (197k points)