mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-05 21:19:30 -06:00
[chore]: Bump github.com/tdewolff/minify/v2 from 2.12.4 to 2.12.5 (#1649)
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify) from 2.12.4 to 2.12.5. - [Release notes](https://github.com/tdewolff/minify/releases) - [Commits](https://github.com/tdewolff/minify/compare/v2.12.4...v2.12.5) --- updated-dependencies: - dependency-name: github.com/tdewolff/minify/v2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
parent
1603a7fd48
commit
9e1756ce8b
8 changed files with 30 additions and 28 deletions
7
vendor/github.com/tdewolff/minify/v2/html/html.go
generated
vendored
7
vendor/github.com/tdewolff/minify/v2/html/html.go
generated
vendored
|
|
@ -392,14 +392,15 @@ func (o *Minifier) Minify(m *minify.M, w io.Writer, r io.Reader, _ map[string]st
|
|||
}
|
||||
if attr.Traits&caselessAttr != 0 {
|
||||
val = parse.ToLower(val)
|
||||
if attr.Hash == Enctype || attr.Hash == Codetype || attr.Hash == Accept || attr.Hash == Type && (t.Hash == A || t.Hash == Link || t.Hash == Embed || t.Hash == Object || t.Hash == Source || t.Hash == Script || t.Hash == Style) {
|
||||
val = minify.Mediatype(val)
|
||||
}
|
||||
}
|
||||
if rawTagHash != 0 && attr.Hash == Type {
|
||||
rawTagMediatype = parse.Copy(val)
|
||||
}
|
||||
|
||||
if attr.Hash == Enctype || attr.Hash == Codetype || attr.Hash == Accept || attr.Hash == Type && (t.Hash == A || t.Hash == Link || t.Hash == Embed || t.Hash == Object || t.Hash == Source || t.Hash == Script || t.Hash == Style) {
|
||||
val = minify.Mediatype(val)
|
||||
}
|
||||
|
||||
// default attribute values can be omitted
|
||||
if !o.KeepDefaultAttrVals && (attr.Hash == Type && (t.Hash == Script && jsMimetypes[string(val)] ||
|
||||
t.Hash == Style && bytes.Equal(val, cssMimeBytes) ||
|
||||
|
|
|
|||
8
vendor/github.com/tdewolff/minify/v2/html/table.go
generated
vendored
8
vendor/github.com/tdewolff/minify/v2/html/table.go
generated
vendored
|
|
@ -137,7 +137,7 @@ var tagMap = map[Hash]traits{
|
|||
}
|
||||
|
||||
var attrMap = map[Hash]traits{
|
||||
Accept: caselessAttr,
|
||||
Accept: trimAttr,
|
||||
Accept_Charset: caselessAttr,
|
||||
Action: urlAttr,
|
||||
Align: caselessAttr,
|
||||
|
|
@ -156,7 +156,7 @@ var attrMap = map[Hash]traits{
|
|||
Classid: urlAttr,
|
||||
Clear: caselessAttr,
|
||||
Codebase: urlAttr,
|
||||
Codetype: caselessAttr,
|
||||
Codetype: trimAttr,
|
||||
Color: caselessAttr,
|
||||
Cols: trimAttr,
|
||||
Colspan: trimAttr,
|
||||
|
|
@ -172,7 +172,7 @@ var attrMap = map[Hash]traits{
|
|||
Dir: caselessAttr,
|
||||
Disabled: booleanAttr,
|
||||
Enabled: booleanAttr,
|
||||
Enctype: caselessAttr,
|
||||
Enctype: trimAttr,
|
||||
Face: caselessAttr,
|
||||
Formaction: urlAttr,
|
||||
Formnovalidate: booleanAttr,
|
||||
|
|
@ -228,7 +228,7 @@ var attrMap = map[Hash]traits{
|
|||
Text: caselessAttr,
|
||||
Translate: caselessAttr,
|
||||
Truespeed: booleanAttr,
|
||||
Type: caselessAttr,
|
||||
Type: trimAttr,
|
||||
Typemustmatch: booleanAttr,
|
||||
Undeterminate: booleanAttr,
|
||||
Usemap: urlAttr,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue