html-minifier 3.5.5 → 3.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -23,18 +23,18 @@ How does HTMLMinifier compare to other solutions — [HTML Minifier from Will Pe
23
23
  | Site | Original size *(KB)* | HTMLMinifier | minimize | Will Peavy | htmlcompressor.com |
24
24
  | ---------------------------------------------------------------------------- |:--------------------:| ------------:| --------:| ----------:| ------------------:|
25
25
  | [Google](https://www.google.com/) | 45 | **42** | 45 | 47 | 45 |
26
- | [HTMLMinifier](https://github.com/kangax/html-minifier) | 133 | **104** | 112 | 116 | 111 |
27
- | [Amazon](https://www.amazon.co.uk/) | 203 | **171** | 195 | 199 | n/a |
28
- | [New York Times](https://www.nytimes.com/) | 233 | **158** | 182 | 178 | 166 |
29
- | [Stack Overflow](https://stackoverflow.com/) | 239 | **186** | 195 | 203 | 192 |
26
+ | [HTMLMinifier](https://github.com/kangax/html-minifier) | 133 | **104** | 112 | 116 | 112 |
27
+ | [Amazon](https://www.amazon.co.uk/) | 212 | **179** | 204 | 208 | n/a |
28
+ | [New York Times](https://www.nytimes.com/) | 231 | **157** | 180 | 176 | 165 |
29
+ | [Stack Overflow](https://stackoverflow.com/) | 244 | **191** | 200 | 208 | 198 |
30
30
  | [Bootstrap CSS](https://getbootstrap.com/docs/3.3/css/) | 272 | **260** | 269 | 229 | 269 |
31
- | [BBC](https://www.bbc.co.uk/) | 279 | **229** | 271 | 278 | 262 |
32
- | [Twitter](https://twitter.com/) | 298 | **223** | 263 | 287 | 263 |
33
- | [Wikipedia](https://en.wikipedia.org/wiki/President_of_the_United_States) | 469 | **437** | 453 | 468 | 453 |
34
- | [NBC](https://www.nbc.com/) | 665 | **627** | 661 | 664 | n/a |
31
+ | [BBC](https://www.bbc.co.uk/) | 274 | **225** | 266 | 273 | 258 |
32
+ | [Twitter](https://twitter.com/) | 319 | **237** | 283 | 311 | 283 |
33
+ | [Wikipedia](https://en.wikipedia.org/wiki/President_of_the_United_States) | 466 | **435** | 451 | 466 | 450 |
34
+ | [NBC](https://www.nbc.com/) | 624 | **593** | 620 | 623 | n/a |
35
35
  | [Eloquent Javascript](https://eloquentjavascript.net/1st_edition/print.html) | 870 | **815** | 840 | 864 | n/a |
36
- | [ES6 table](https://kangax.github.io/compat-table/es6/) | 4228 | **3586** | 3999 | n/a | n/a |
37
- | [ES6 draft](https://tc39.github.io/ecma262/) | 5701 | **5087** | 5236 | n/a | n/a |
36
+ | [ES6 table](https://kangax.github.io/compat-table/es6/) | 4083 | **3463** | 3861 | n/a | n/a |
37
+ | [ES6 draft](https://tc39.github.io/ecma262/) | 5700 | **5086** | 5235 | n/a | n/a |
38
38
 
39
39
  ## Options Quick Reference
40
40
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "html-minifier",
3
3
  "description": "Highly configurable, well-tested, JavaScript-based HTML minifier.",
4
- "version": "3.5.5",
4
+ "version": "3.5.6",
5
5
  "keywords": [
6
6
  "cli",
7
7
  "compress",
package/src/htmlparser.js CHANGED
@@ -270,7 +270,7 @@ function HTMLParser(html, handler) {
270
270
  parseEndTag('', lastTag);
271
271
  }
272
272
 
273
- if (!handler.html5) {
273
+ if (!handler.html5 && !inline(tagName)) {
274
274
  while (lastTag && inline(lastTag)) {
275
275
  parseEndTag('', lastTag);
276
276
  }