From 346f73dbaff13c6c4ceccb7e584fd518d0f2f9ab Mon Sep 17 00:00:00 2001 From: alexlamsl Date: Fri, 13 Jul 2018 15:40:16 +0800 Subject: [PATCH] Version 3.5.19 --- README.md | 22 +++++++++++----------- dist/htmlminifier.js | 38 ++++++++++++++++---------------------- dist/htmlminifier.min.js | 4 ++-- index.html | 2 +- package.json | 2 +- 5 files changed, 31 insertions(+), 37 deletions(-) diff --git a/README.md b/README.md index 2398378f..0e91ec19 100644 --- a/README.md +++ b/README.md @@ -20,19 +20,19 @@ How does HTMLMinifier compare to other solutions — [HTML Minifier from Will Pe | Site | Original size *(KB)* | HTMLMinifier | minimize | Will Peavy | htmlcompressor.com | | ---------------------------------------------------------------------------- |:--------------------:| ------------:| --------:| ----------:| ------------------:| -| [Google](https://www.google.com/) | 47 | **43** | 47 | 50 | 47 | -| [Twitter](https://twitter.com/) | 139 | **104** | 132 | 152 | 132 | -| [HTMLMinifier](https://github.com/kangax/html-minifier) | 149 | **116** | 124 | 129 | 124 | -| [New York Times](https://www.nytimes.com/) | 225 | **154** | 175 | 170 | 158 | -| [Stack Overflow](https://stackoverflow.com/) | 253 | **196** | 206 | 215 | 204 | +| [Google](https://www.google.com/) | 46 | **42** | 46 | 48 | 46 | +| [Twitter](https://twitter.com/) | 143 | **107** | 136 | 157 | 136 | +| [HTMLMinifier](https://github.com/kangax/html-minifier) | 152 | **119** | 127 | 132 | 127 | +| [New York Times](https://www.nytimes.com/) | 223 | **152** | 173 | 168 | 156 | +| [Stack Overflow](https://stackoverflow.com/) | 258 | **201** | 211 | 220 | 208 | | [Bootstrap CSS](https://getbootstrap.com/docs/3.3/css/) | 271 | **260** | 269 | 229 | 269 | -| [BBC](https://www.bbc.co.uk/) | 287 | **231** | 279 | 281 | 272 | -| [Amazon](https://www.amazon.co.uk/) | 438 | **378** | 424 | 436 | n/a | -| [Wikipedia](https://en.wikipedia.org/wiki/President_of_the_United_States) | 484 | **451** | 468 | 484 | 467 | -| [NBC](https://www.nbc.com/) | 692 | **651** | 688 | 691 | n/a | +| [BBC](https://www.bbc.co.uk/) | 299 | **242** | 290 | 293 | 283 | +| [Amazon](https://www.amazon.co.uk/) | 398 | **342** | 385 | 397 | n/a | +| [Wikipedia](https://en.wikipedia.org/wiki/President_of_the_United_States) | 485 | **452** | 470 | 487 | 469 | +| [NBC](https://www.nbc.com/) | 679 | **639** | 675 | 678 | n/a | | [Eloquent Javascript](https://eloquentjavascript.net/1st_edition/print.html) | 870 | **815** | 840 | 864 | n/a | -| [ES6 table](https://kangax.github.io/compat-table/es6/) | 5068 | **4320** | 4797 | n/a | n/a | -| [ES6 draft](https://tc39.github.io/ecma262/) | 6051 | **5431** | 5595 | n/a | n/a | +| [ES6 table](https://kangax.github.io/compat-table/es6/) | 5109 | **4353** | 4834 | n/a | n/a | +| [ES6 draft](https://tc39.github.io/ecma262/) | 6063 | **5443** | 5607 | n/a | n/a | ## Options Quick Reference diff --git a/dist/htmlminifier.js b/dist/htmlminifier.js index b7127905..575fb884 100644 --- a/dist/htmlminifier.js +++ b/dist/htmlminifier.js @@ -1,5 +1,5 @@ /*! - * HTMLMinifier v3.5.18 (http://kangax.github.io/html-minifier/) + * HTMLMinifier v3.5.19 (https://kangax.github.io/html-minifier/) * Copyright 2010-2018 Juriy "kangax" Zaytsev * Licensed under the MIT license */ @@ -23898,7 +23898,7 @@ function HTMLParser(html, handler) { } } - // http://en.wikipedia.org/wiki/Conditional_comment#Downlevel-revealed_conditional_comment + // https://en.wikipedia.org/wiki/Conditional_comment#Downlevel-revealed_conditional_comment if (/^'); @@ -24525,7 +24525,7 @@ function isEventAttribute(attrName, options) { } function canRemoveAttributeQuotes(value) { - // http://mathiasbynens.be/notes/unquoted-attribute-values + // https://mathiasbynens.be/notes/unquoted-attribute-values return /^[^ \t\n\f\r"'`=<>]+$/.test(value); } @@ -24790,7 +24790,7 @@ function processScript(text, options, currentAttrs) { // Tag omission rules from https://html.spec.whatwg.org/multipage/syntax.html#optional-tags // with the following deviations: // - retain if followed by