html-minifier 3.5.9 → 3.5.10
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/package.json +1 -1
- package/src/htmlminifier.js +5 -0
- package/src/htmlparser.js +1 -1
package/package.json
CHANGED
package/src/htmlminifier.js
CHANGED
|
@@ -1153,6 +1153,11 @@ function minify(value, options, partialMarkup) {
|
|
|
1153
1153
|
trimTrailingWhitespace(buffer.length - 1, nextTag);
|
|
1154
1154
|
}
|
|
1155
1155
|
}
|
|
1156
|
+
else if (uidPattern) {
|
|
1157
|
+
text = text.replace(uidPattern, function(match, prefix, index) {
|
|
1158
|
+
return ignoredCustomMarkupChunks[+index][0];
|
|
1159
|
+
});
|
|
1160
|
+
}
|
|
1156
1161
|
if (!stackNoCollapseWhitespace.length && nextTag !== 'html' && !(prevTag && nextTag)) {
|
|
1157
1162
|
text = collapseWhitespace(text, options, false, false, true);
|
|
1158
1163
|
}
|
package/src/htmlparser.js
CHANGED
|
@@ -80,7 +80,7 @@ var special = makeMap('script,style');
|
|
|
80
80
|
|
|
81
81
|
// HTML5 tags https://html.spec.whatwg.org/multipage/indices.html#elements-3
|
|
82
82
|
// Phrasing Content https://html.spec.whatwg.org/multipage/dom.html#phrasing-content
|
|
83
|
-
var nonPhrasing = makeMap('address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track');
|
|
83
|
+
var nonPhrasing = makeMap('address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,ol,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track,ul');
|
|
84
84
|
|
|
85
85
|
var reCache = {};
|
|
86
86
|
|