paolochiodi / htmlcompressor

A work in progress port of google's htmlcompressor.jar
Other
152 stars 26 forks source link

remove_style_attributes searches for incorrect pattern #15

Closed statianzo closed 10 years ago

statianzo commented 10 years ago

The pattern is looking for a type attribute of text/style. However, the common value is text/css

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style#Attributes

paolochiodi commented 10 years ago

Should be fixed now, I'll publish a new version later today.

ps: This is a bit odd, since that pattern is exactly the same off the original htmlcompressor from google. I'll report the bug there.