vinnyzudo / htmlcompressor

Automatically exported from code.google.com/p/htmlcompressor
Apache License 2.0
1 stars 0 forks source link

styleTypeAttrPattern should also search for type="text/css" #95

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

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.

Original issue reported on code.google.com by chiod...@gmail.com on 9 May 2014 at 7:42