kangax / kangax/html-minifier

Add `<meter>` to `inlineTags`

Open
#1,042 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

According to [spec](https://html.spec.whatwg.org/multipage/form-elements.html#the-meter-element), `` is an inline element, and surrounding whitespace should be kept.

### Example:
``` html
This is
something
to be tested
```

### Expected:
``` html
This is something to be tested
```

### Result:
``` html
This issomethingto be tested
```

👆 Note the spaces before `` and after ``.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the inlineTags definition and the existing handling or coverage for inline elements. Add meter to the relevant inline-element list, then verify that the example preserves whitespace before and after the meter element.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.