From 282e0e22f23b08eef2f8cd7a8c293524f6400146 Mon Sep 17 00:00:00 2001 From: Almir Filho Date: Thu, 19 Dec 2013 11:52:05 -0200 Subject: [PATCH] Adds missing HTML inline tags for collapsing whitespace --- src/htmlminifier.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/htmlminifier.js b/src/htmlminifier.js index 18fb4ed..168ac2f 100644 --- a/src/htmlminifier.js +++ b/src/htmlminifier.js @@ -42,7 +42,7 @@ function collapseWhitespaceSmart(str, prevTag, nextTag) { // array of tags that will maintain a single space outside of them - var tags = ['a', 'abbr', 'acronym', 'b', 'big', 'button', 'code', 'del', 'dfn', 'em', 'font', 'i', 'ins', 'kbd', 'mark', 'q', 's', 'small', 'span', 'strike', 'strong', 'sub', 'sup', 'time', 'tt', 'u', 'var']; + var tags = ['a', 'abbr', 'acronym', 'b', 'bdi', 'bdo', 'big', 'button', 'cite', 'code', 'del', 'dfn', 'em', 'font', 'i', 'ins', 'kbd', 'mark', 'q', 'rt', 'rp', 's', 'samp', 'small', 'span', 'strike', 'strong', 'sub', 'sup', 'time', 'tt', 'u', 'var']; if (prevTag && prevTag !== 'img' && (prevTag.substr(0,1) !== '/' || ( prevTag.substr(0,1) === '/' && tags.indexOf(prevTag.substr(1)) === -1))) { -- 2.34.1