aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/golang.org/x/net/html/token.go
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2019-11-15 20:23:43 -0800
committerGravatar Frédéric Guillot <fred@miniflux.net>2019-11-15 20:34:55 -0800
commitd422d4e0670f3736b3b94448970182a15d663564 (patch)
tree1a0a34800bac478a6d8881dc2df92de8db9b6eb7 /vendor/golang.org/x/net/html/token.go
parent881c0f406b8d33e1deddbfd6c6b36c37c5a09070 (diff)
Update autocert lib because ACME v1 is EOL
Diffstat (limited to 'vendor/golang.org/x/net/html/token.go')
-rw-r--r--vendor/golang.org/x/net/html/token.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/vendor/golang.org/x/net/html/token.go b/vendor/golang.org/x/net/html/token.go
index e3c01d7..ae0d1b0 100644
--- a/vendor/golang.org/x/net/html/token.go
+++ b/vendor/golang.org/x/net/html/token.go
@@ -347,6 +347,7 @@ loop:
break loop
}
if c != '/' {
+ z.raw.end--
continue loop
}
if z.readRawEndTag() || z.err != nil {
@@ -1067,6 +1068,11 @@ loop:
// Raw returns the unmodified text of the current token. Calling Next, Token,
// Text, TagName or TagAttr may change the contents of the returned slice.
+//
+// The token stream's raw bytes partition the byte stream (up until an
+// ErrorToken). There are no overlaps or gaps between two consecutive token's
+// raw bytes. One implication is that the byte offset of the current token is
+// the sum of the lengths of all previous tokens' raw bytes.
func (z *Tokenizer) Raw() []byte {
return z.buf[z.raw.start:z.raw.end]
}