aboutsummaryrefslogtreecommitdiff
path: root/vendor/golang.org/x/net/html/token.go
diff options
context:
space:
mode:
authorale <ale@incal.net>2021-06-19 16:43:43 +0100
committerale <ale@incal.net>2021-06-19 16:43:43 +0100
commit833da3f33a5c727a8d7ccd034c43497c66793026 (patch)
tree2963588cf4fc88f77a39f2a4ab535a5bb44756a9 /vendor/golang.org/x/net/html/token.go
parenta3019b1703b29e74cfb8fd71b9f79b0c1da11395 (diff)
downloadcrawl-833da3f33a5c727a8d7ccd034c43497c66793026.tar.gz
crawl-833da3f33a5c727a8d7ccd034c43497c66793026.zip
go mod vendor
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, 0 insertions, 6 deletions
diff --git a/vendor/golang.org/x/net/html/token.go b/vendor/golang.org/x/net/html/token.go
index ae0d1b0..e3c01d7 100644
--- a/vendor/golang.org/x/net/html/token.go
+++ b/vendor/golang.org/x/net/html/token.go
@@ -347,7 +347,6 @@ loop:
break loop
}
if c != '/' {
- z.raw.end--
continue loop
}
if z.readRawEndTag() || z.err != nil {
@@ -1068,11 +1067,6 @@ 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]
}