All formattable HTML should have class attributes

All generated HTML containers should have class attributes with identifiers that are unique to the class. (Ideally they should also all have properties that can be set in the ePublisher GUI, but at the very least, they should have class attributes.)

Detailed Description

All HTML containers should be formattable with CSS. However, some generated HTML currently (2010.4) do not contain class attributes, and as such, cannot be formatted. Table footnotes generated from FrameMaker source is one such example. You can format the text of the footnote, but you cannot format the number or letter identifier. The resulting output places big linespaces between multiple footnotes, similar to this example:

+--------------
| 1. Table footnote
|
| 2. Another footnote

This is because the identifier is a separate <div> from the text. If there was a way to format the identifiers, such as with CSS, this could be controlled.

Use Cases

Consider table footnotes generated by WebWorks Help. The HTML looks similar to this:

<div style="font-size: smaller; float: left; padding-right: 10px;">
  <a name="30" href="#wwfootnote_inline_30">1</a>
</div>
<div class="tf_TableFootnote">Note text</div>

Notice the <div> for the number does not have a class attribute. If it did, the number could be formatted using CSS.


:) :)) :( ;) :\ |) X-( B)

Enhancements/All formattable HTML should have class attributes (last edited 2011-02-23 17:28:36 by MikeHedblom)