Export to GitHub

htmlcompressor - issue #95
styleTypeAttrPattern should also search for type="text/css"
Posted on May 9, 2014 by
Happy Panda
Trying to compress <style type="text/css"></style> the attribute type="text/css" should be removed, since it is the default value
The styleTypeAttrPattern matches (and the compressor later remove) type="text/style" , but the common value is "text/css". https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style#Attributes
I'd suggest to match and remove both.
Status: New
Labels:
Type-Defect
Priority-Medium