kangax / kangax/html-minifier

space before and after <a></a> is removed

Open
#1,082 5 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5k
Forks
577
PR merge metrics
No merged PRs in 30d

Description

I'm not very technical, but I have this weird issue where spaces before and after `` is removed.

Example, this is what I type:
`you can go to example.com or you can go to Google.com`

After minify I get:

`you can go toexample.comor you can go toGoogle.com`

Which outputs to:
you can go toexample.comor you can go toGoogle.com

Which arrtribute I'm suppose to check?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported minification example with the HTML minifier entry point, then trace how whitespace around anchor elements is handled. Done means spaces around inline links are preserved and the example is covered by a regression test; no test or source file is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.