From: cui fliter Date: Sun, 23 Apr 2023 10:44:05 +0000 (+0800) Subject: html/template: fix unavailable url X-Git-Tag: go1.21rc1~783 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=22d94dfdc8ab866ff6097b6b92a2860233873c95;p=gostls13.git 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 Reviewed-by: Ian Lance Taylor Reviewed-by: Andrew Polukhin TryBot-Result: Gopher Robot Run-TryBot: Ian Lance Taylor Run-TryBot: shuang cui Auto-Submit: Ian Lance Taylor --- diff --git a/src/html/template/escape.go b/src/html/template/escape.go index c20e6b0c34..4ba1d6b318 100644 --- a/src/html/template/escape.go +++ b/src/html/template/escape.go @@ -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 diff --git a/src/html/template/transition.go b/src/html/template/transition.go index 92eb351906..3b9fbfb68f 100644 --- a/src/html/template/transition.go +++ b/src/html/template/transition.go @@ -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