summaryrefslogtreecommitdiff
path: root/vendor/github.com/tdewolff
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/tdewolff')
-rw-r--r--vendor/github.com/tdewolff/minify/v2/README.md5
-rw-r--r--vendor/github.com/tdewolff/minify/v2/html/table.go2
-rw-r--r--vendor/github.com/tdewolff/parse/v2/html/lex.go1
3 files changed, 7 insertions, 1 deletions
diff --git a/vendor/github.com/tdewolff/minify/v2/README.md b/vendor/github.com/tdewolff/minify/v2/README.md
index 0dfcb06c2..7ab6b2fe9 100644
--- a/vendor/github.com/tdewolff/minify/v2/README.md
+++ b/vendor/github.com/tdewolff/minify/v2/README.md
@@ -105,6 +105,11 @@ See [CLI tool](https://github.com/tdewolff/minify/tree/master/cmd/minify) for in
If you want to use Docker, please see https://hub.docker.com/r/tdewolff/minify.
+```bash
+$ docker run -it tdewolff/minify
+/ # minify --version
+```
+
## API stability
There is no guarantee for absolute stability, but I take issues and bugs seriously and don't take API changes lightly. The library will be maintained in a compatible way unless vital bugs prevent me from doing so. There has been one API change after v1 which added options support and I took the opportunity to push through some more API clean up as well. There are no plans whatsoever for future API changes.
diff --git a/vendor/github.com/tdewolff/minify/v2/html/table.go b/vendor/github.com/tdewolff/minify/v2/html/table.go
index a42782b03..5de3b497f 100644
--- a/vendor/github.com/tdewolff/minify/v2/html/table.go
+++ b/vendor/github.com/tdewolff/minify/v2/html/table.go
@@ -205,7 +205,7 @@ var attrMap = map[Hash]traits{
Poster: urlAttr,
Profile: urlAttr,
Readonly: booleanAttr,
- Rel: caselessAttr,
+ Rel: caselessAttr | trimAttr,
Required: booleanAttr,
Rev: caselessAttr,
Reversed: booleanAttr,
diff --git a/vendor/github.com/tdewolff/parse/v2/html/lex.go b/vendor/github.com/tdewolff/parse/v2/html/lex.go
index 2c47d2527..4325024bd 100644
--- a/vendor/github.com/tdewolff/parse/v2/html/lex.go
+++ b/vendor/github.com/tdewolff/parse/v2/html/lex.go
@@ -123,6 +123,7 @@ func (l *Lexer) Next() (TokenType, []byte) {
if l.rawTag != 0 {
if rawText := l.shiftRawText(); len(rawText) > 0 {
+ l.text = rawText
l.rawTag = 0
return TextToken, rawText
}