Prevent stripping <!-- htmlmin:ignore -->
- Dominant language
- JavaScript
- Stars
- 5k
- Forks
- 577
- PR merge metrics
- No merged PRs in 30d
Description
I have a use case where I'd like to clean up developer code by stripping redundant and obsolete attributes, however want to keep all white space and htmlmin:ignore comments. Is this possible?
#### test code
```
...
```
### expected
```
<!-- htmlmin:ignore --><pre>...</pre><!-- htmlmin:ignore -->
<script src=/file.js>
```
### result
```
<pre>...</pre>
<script src=/file.js>
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the supplied HTML with the minifier and trace handling of the htmlmin:ignore comments. Check how ignored regions are removed while redundant attributes are simplified. Done means both ignore comments and the enclosed whitespace-sensitive content remain in the output while the script's redundant type attribute is still stripped.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling, web-dev
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100