Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Elide Attributes needs an exception for type="text" #696

Closed
GoogleCodeExporter opened this issue Apr 6, 2015 · 1 comment
Closed

Elide Attributes needs an exception for type="text" #696

GoogleCodeExporter opened this issue Apr 6, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Technically Elide Attributes can remove type="text". And I have to admit the 
CSS risk is documented.

However, for the case of <input> tags, they vary wildly in appearance. It is 
therefore extremely common to have a selector on type="text", as you don't want 
to place it on 'input' itself, and by adding extra classes to get the necessary 
specificity, the developer is working against minification.

I therefore think you should either make an exception for stripping 
type="text", or to add some additional configurability of what tag/attribute 
combinations may be elided, with sensible defaults.

Original issue reported on code.google.com by ch...@ocproducts.com on 14 May 2013 at 12:45

@GoogleCodeExporter
Copy link
Author

Thanks for the report Chris.  You have good timing.  This was recently 
addressed in Issue 684 and will be part of the next release.

Original comment by jkar...@google.com on 14 May 2013 at 11:58

  • Changed state: Duplicate

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant