Custom tags handled like display:block elements
Open
- Dominant language
- JavaScript
- Stars
- 5k
- Forks
- 577
- PR merge metrics
- No merged PRs in 30d
Description
Custom tags in a browser are getting per default the display: inline css rule. The collapseWhitespace option on the other side handles them as a block element and removes the spaces entirely. For ex.:
`
Click here and here
`Becomes
`
Clickhereandhere
`And gets rendered as
Clickhereandhere
in browser since the spaces are removed. I already found the conservativeCollapse option, but perhaps there is a better solution.
Shouldn't html-minifier handle custom tags the same way a browser does with same display setting - inline?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.