Closed eGavr closed 8 years ago
:shipit: Thanks!
@tadatuta Can you please look at this PR and tell us your wise opinion about duplications in classes? Can it be important for someone? Should there be an option to compare class attributes more accurately?
@zxqfox I understand that duplicate classes do no harm but why should we consider HTML with them identical? Isn't duplication a result of some issues with templates?
@tadatuta I described my position in #138. <input class="a a a">
and <input class="a">
are the same for browser, so there is no real difference, gzip will help you if your template contains repeats. Moreover, if somebody need it for real cases, we can add an option to check for duplications. Atm we can't disable this check (as well as sorting classes, and a lot of other assumptions).
there is no real difference
as I wrote above I know there's no difference for browsers but it may be for template engines or templates.
if somebody need it for real cases
can't imagine any ;)
:yellow_heart: :heart: :yellow_heart: Thanks!
closes #138
/cc @zxqfox