View Single Post
Old 06-24-2020, 12:11 PM   #8
mcdummy
Connoisseur
mcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the rough
 
mcdummy's Avatar
 
Posts: 73
Karma: 7130
Join Date: Apr 2015
Device: PRS-T3
Quote:
Originally Posted by kovidgoyal View Post
If you find the function misleading, dont use it. It's at the sweetspot of utility vs performance for me.
Basically, without differentiating between, for instance, p and div classes/selector/elements in the style file, the whole tool is pointless.

First of all, a p.center defintion has no effect on a div passages.

Secondly, if you have 100 <div class="center"> occurences and only one of <p class="center"> in the html and a style file that only has a definition for p.center but none for div.center, the tool would remove none of the 101 classes.

On the other hand, if you have 100 <div class="center"> passages and no <p class="center"> in the html and the same style file as above, the tool would remove all 100 classes.
mcdummy is offline   Reply With Quote