AndersDJohnson / AndersDJohnson/htmlcompressor

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

未关闭
#95 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
auto-migrated Priority-Medium Type-Defect
主要语言
Java
星标
1
派生
0
PR 合并指标
30 天内没有已合并 PR

描述

```

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

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。