Skip to content

Add ignoring of duplicate 'css' classes - #140

Merged
eGavr merged 3 commits into
masterfrom
issue-138
Mar 16, 2016
Merged

eGavr merged 3 commits into
masterfrom
issue-138

Conversation

@eGavr

@eGavr eGavr commented Mar 16, 2016

Copy link
Copy Markdown
Member

closes #138

/cc @zxqfox

@eGavr
eGavr force-pushed the issue-138 branch 4 times, most recently from 1bf66fb to 3947839 Compare March 16, 2016 15:25
@qfox

qfox commented Mar 16, 2016

Copy link
Copy Markdown
Member

:shipit:
Thanks!

eGavr added a commit that referenced this pull request Mar 16, 2016
Add ignoring of duplicate 'css' classes
@eGavr
eGavr merged commit d322204 into master Mar 16, 2016
@eGavr
eGavr deleted the issue-138 branch March 16, 2016 15:57
@qfox

qfox commented Mar 16, 2016

Copy link
Copy Markdown
Member

@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?

@tadatuta

Copy link
Copy Markdown
Member

@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?

@qfox

qfox commented Mar 17, 2016

Copy link
Copy Markdown
Member

@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).

@tadatuta

Copy link
Copy Markdown
Member

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 ;)

@qfox

qfox commented Mar 17, 2016

Copy link
Copy Markdown
Member

💛 ❤️ 💛 Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feat request: Should ignore duplicates in class names list

3 participants