kangax / kangax/html-minifier

SVG tag is cleared

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

Description

When I run with `removeEmptyElements: true` mode SVG tag and its child tags is cleared in `index.html`

`removeEmptyElements: false`

```html

```

-----------------------------------------

`removeEmptyElements: true`

```html

```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported HTML with `removeEmptyElements: true` and compare the SVG output with the provided examples. Trace the `removeEmptyElements` handling for SVG elements; done means the SVG and its child tags are preserved when they contain the shown attributes and circle content.

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
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.