mirror of
https://github.com/golang/go
synced 2024-11-16 20:54:48 -07:00
html/template: fix unavailable url
The previous link is no longer accessible. use latest link. Change-Id: I76411ee00785f3d92014c5012e4efb446924adaf Reviewed-on: https://go-review.googlesource.com/c/go/+/487835 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Reviewed-by: Andrew Polukhin <andrewmathematics2003@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Ian Lance Taylor <iant@google.com> Run-TryBot: shuang cui <imcusg@gmail.com> Auto-Submit: Ian Lance Taylor <iant@google.com>
This commit is contained in:
parent
f00e947cdf
commit
22d94dfdc8
@ -758,7 +758,7 @@ func (e *escaper) escapeText(c context, n *parse.TextNode) context {
|
||||
} else if isComment(c.state) && c.delim == delimNone {
|
||||
switch c.state {
|
||||
case stateJSBlockCmt:
|
||||
// https://es5.github.com/#x7.4:
|
||||
// https://es5.github.io/#x7.4:
|
||||
// "Comments behave like white space and are
|
||||
// discarded except that, if a MultiLineComment
|
||||
// contains a line terminator character, then
|
||||
|
@ -397,7 +397,7 @@ func tLineCmt(c context, s []byte) (context, int) {
|
||||
return c, len(s)
|
||||
}
|
||||
c.state = endState
|
||||
// Per section 7.4 of EcmaScript 5 : https://es5.github.com/#x7.4
|
||||
// Per section 7.4 of EcmaScript 5 : https://es5.github.io/#x7.4
|
||||
// "However, the LineTerminator at the end of the line is not
|
||||
// considered to be part of the single-line comment; it is
|
||||
// recognized separately by the lexical grammar and becomes part
|
||||
|
Loading…
Reference in New Issue
Block a user