Comments (5)
I see where your coming from, but the specific example is merely a test case (with bad HTML admittedly). Now I don't mind improving the test so it actually has disabled on an input. But could you provide an example where this actually breaks output? Developers are still required to write valid HTML, minimize will not be able to fix bad HTML.
from minimize.
We spotted the issue at work were we use Angularjs and custom directives.
One of them allowed "disabling " which was data bound to expression
specified on attribute disabled. Minimize removes the expression leaving
just an empty attribute.
Now, of course we can change the name of the attribute used by the
directive or enable option spare, but I still think that these attributes
should not be touched here.
8 gru 2014 12:51 "Martijn Swaagman" [email protected] napisaΕ(a):
I see where your coming from, but the specific example is merely a test
case (with bad HTML admittedly). Now I don't mind improving the test so it
actually has disabled on an input. But could you provide an example where
this actually breaks output? Developers are still required to write valid
HTML, minimize will not be able to fix bad HTML.β
Reply to this email directly or view it on GitHub
#27 (comment).
from minimize.
ok so you had something like this <img disabled="disabling">
being turned into <img disabled>
? I think you got a point here, the only serious downside I see with this is maintaining all lookup tables per element/groups of elements.
from minimize.
Yes, you got that right. Actually in our case we had an "element" directive, i.e. a new html element, something like <myimg disabled="disabling" />
from minimize.
Fixed and released as v1.2.0
from minimize.
Related Issues (20)
- An in-range update of cli-color is breaking the build π¨ HOT 1
- An in-range update of uuid is breaking the build π¨ HOT 1
- HTML Attribute Contenteditable Removed By Minimize
- HTML minification eats up spaces between inline elements HOT 3
- Maximum call stack size exceeded HOT 1
- Empty attributes are assigned blank values HOT 4
- This is beyond the scope of this project. NO, IT'S NOT HOT 3
- Django templates error HOT 8
- html tags are autoclosed within a single html file HOT 2
- Keep case HOT 1
- Empty space in attribute HOT 1
- Stripping off extra HTML tags HOT 4
- Minify inline JS - Package link broken? HOT 7
- minifying all HTML files recursively in folder HOT 1
- SSI only supports #includes
- Attribut draggable is no redundant attribute HOT 1
- Feat: remove development code
- Track elements are not considered void elements
- Version 10 of node.js has been released
- An in-range update of htmlparser2 is breaking the build π¨ HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minimize.