Code Monkey home page Code Monkey logo

Comments (8)

zhu-xiaoming avatar zhu-xiaoming commented on May 20, 2024

I reproduce this bug in both html-minifier and html-minifier-terser. So I opened the issue in both projects.

from html-minifier-terser.

DanielRuf avatar DanielRuf commented on May 20, 2024

For the css part we use a thirdparty library. I will check that in detail, maybe there is a bug, but probably not on our side.

Besides this, protocol-less URLs are rarely a good idea.

from html-minifier-terser.

DanielRuf avatar DanielRuf commented on May 20, 2024

I can not reproduce it on https://terser.org/html-minifier-terser/ with the default settings. The quotes should disappear because they are optional.

from html-minifier-terser.

DanielRuf avatar DanielRuf commented on May 20, 2024

Ah now I can reproduce it. It happens when you disable Decode Entity Characters.

Why do you use " instead of '?

from html-minifier-terser.

DanielRuf avatar DanielRuf commented on May 20, 2024

The following works and is valid HTML:

The " makes no sense and is no valid HTML and not the correct way to escape the character.

Closing as "not a bug".

from html-minifier-terser.

zhu-xiaoming avatar zhu-xiaoming commented on May 20, 2024

Ah now I can reproduce it. It happens when you disable Decode Entity Characters.

Why do you use " instead of '?

the html is generated using a puppeteer.

from html-minifier-terser.

DanielRuf avatar DanielRuf commented on May 20, 2024

Then puppeteer or the part who generates it has an issue. Please check the Decode Entity Characters option.

from html-minifier-terser.

zhu-xiaoming avatar zhu-xiaoming commented on May 20, 2024

check the Decode Entity Characters option, it work. thank.

from html-minifier-terser.

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.