mirror of
https://github.com/golang/net.git
synced 2026-03-31 18:37:08 +09:00
Properly handle the case where HTML comments begin with exclamation marks and have no other content, i.e. "<!--!-->". Previously these comments would cause the tokenizer to consider everything following to also be considered part of the comment. Fixes golang/go#37771 Change-Id: I78ea310debc3846f145d62cba017055abc7fa4e0 Reviewed-on: https://go-review.googlesource.com/c/net/+/442496 Run-TryBot: Roland Shoemaker <roland@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Damien Neil <dneil@google.com>