From: alexlamsl Date: Fri, 12 Feb 2016 21:32:05 +0000 (+0800) Subject: remove obsolete comments X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=a5bd53b76e1eaad7cbda2b9ae942033d752b2c17;p=html-minifier.git remove obsolete comments --- diff --git a/dist/htmlminifier.js b/dist/htmlminifier.js index 10589e5..9e56793 100644 --- a/dist/htmlminifier.js +++ b/dist/htmlminifier.js @@ -56,13 +56,10 @@ IS_REGEX_CAPTURING_BROKEN = g === ''; }); - // Empty Elements - HTML 4.01 + // Empty Elements var empty = makeMap('area,base,basefont,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr'); - // Block Elements - HTML 4.01 - // var block = makeMap('address,applet,blockquote,button,center,dd,del,dir,div,dl,dt,fieldset,form,frameset,hr,iframe,ins,isindex,li,map,menu,noframes,noscript,object,ol,p,pre,script,table,tbody,td,tfoot,th,thead,tr,ul'); - - // Inline Elements - HTML 4.01 + // Inline Elements var inline = makeMap('a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,noscript,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,svg,textarea,tt,u,var'); // Elements that you can, intentionally, leave open diff --git a/src/htmlparser.js b/src/htmlparser.js index 0d598b3..e942f3a 100644 --- a/src/htmlparser.js +++ b/src/htmlparser.js @@ -51,13 +51,10 @@ IS_REGEX_CAPTURING_BROKEN = g === ''; }); - // Empty Elements - HTML 4.01 + // Empty Elements var empty = makeMap('area,base,basefont,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr'); - // Block Elements - HTML 4.01 - // var block = makeMap('address,applet,blockquote,button,center,dd,del,dir,div,dl,dt,fieldset,form,frameset,hr,iframe,ins,isindex,li,map,menu,noframes,noscript,object,ol,p,pre,script,table,tbody,td,tfoot,th,thead,tr,ul'); - - // Inline Elements - HTML 4.01 + // Inline Elements var inline = makeMap('a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,noscript,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,svg,textarea,tt,u,var'); // Elements that you can, intentionally, leave open