Giter Club home page Giter Club logo

Comments (5)

Swaagie avatar Swaagie commented on July 20, 2024

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.

ArturDorochowicz avatar ArturDorochowicz commented on July 20, 2024

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.

Swaagie avatar Swaagie commented on July 20, 2024

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.

ArturDorochowicz avatar ArturDorochowicz commented on July 20, 2024

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.

Swaagie avatar Swaagie commented on July 20, 2024

Fixed and released as v1.2.0

from minimize.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.