includeAutoGeneratedTags not working properly
- Dominant language
- JavaScript
- Stars
- 5k
- Forks
- 577
- PR merge metrics
- No merged PRs in 30d
Description
Here is a test case:
```
```
When I minify it with `includeAutoGeneratedTags` set to `false`, I get the following output `
`. As you can see, a closing `In case it is relevant, here are all the options which I have (although I did try to change them and they did not influence current behaviour with `div`):
```
{
"caseSensitive": false,
"collapseBooleanAttributes": true,
"collapseInlineTagWhitespace": true,
"collapseWhitespace": true,
"conservativeCollapse": false,
"decodeEntities": true,
"html5": true,
"includeAutoGeneratedTags": false,
"keepClosingSlash": false,
"maxLineLength": 0,
"minifyCSS": true,
"minifyJS": true,
"preserveLineBreaks": false,
"preventAttributesEscaping": false,
"processConditionalComments": true,
"processScripts": [
"text/html",
"application/ld+json"
],
"removeAttributeQuotes": false,
"removeComments": true,
"removeEmptyAttributes": true,
"removeEmptyElements": false,
"removeOptionalTags": true,
"removeRedundantAttributes": true,
"removeScriptTypeAttributes": true,
"removeStyleLinkTypeAttributes": true,
"removeTagWhitespace": false,
"sortAttributes": true,
"sortClassName": true,
"trimCustomFragments": true,
"useShortDoctype": true
}
```
I thought that #540 was supposed to add an option to remove such behavior. Is there any other way yo turn off such additions of closing tags?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.