Quote:
Originally Posted by kovidgoyal
Removing unused classes is about removing classes from HTML not style files. Removal of unused style rules will remove all style rules that are actually unused.
|
Removing unused classes from HTML is what I want. Basically, it should be more a check function to see if all classes required in the html are defined.
To have this check function, I let the editor remove unused classes and then look at the removal classes to see what classes are used but do not have a corresponding definition in a style file.
However, if this function only checks if a class is defined for some selector, then it is extremely misleading and inconvenient.
For instance, assume you only have <div class="center"> in the text an only p.center in the style file.
When you press the button once with all options checked, it removes the p.center from the style file, but does not show that classes are unused in the html.
When you press it afterwards again, it shows you that the "center"-class is unused in the html and removs the class from the html.
In addition, if the creator of the ebook made a mistake and defined p.center but forgot to define div.center, he won't be able to notice that a defintion is missing.