w3c/html-api-map — pull request #1 by klown (2014-04-15 15:31:18+00:00)
Title: Added ReSpec class 'removeOnSave' to some of the mapping table UI.

In a previous email to Jason, I wrote:
> I'm also getting multiple copies of the "View by X" button and the "Show/hide" buttons after saving a
snapshot. Apparently, the best way to set things up is to show the full table and then save a snapshot. But then, the buttons are also saved in the snapshot. When the snapshot is loaded the mapping script creates them as before resulting in multiple copies of the buttons. The document has to be tweaked to remove the extra copies. Still looking for a better way ...

Looking at how ReSpec removes its own UI revealed a "removeOnSave" class. This pull request adds that class to the relevant mapping table buttons, and they are not saved in the snapshot. But, as before, they are generated by the mapping table script when the snapshot is loaded.

The only (minor) downside is that the buttons will always have the "removeOnSave" class even in the final document, where it is extra fluff.