AndersDJohnson / AndersDJohnson/htmlcompressor

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

Open
#95 0 comments 0 reactions 0 assignees View on GitHub
auto-migrated Priority-Medium Type-Defect
Dominant language
Java
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

```

Trying to compress
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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.