]> Cypherpunks.ru repositories - gostls13.git/commitdiff
html/template: fix unavailable url
authorcui fliter <imcusg@gmail.com>
Sun, 23 Apr 2023 10:44:05 +0000 (18:44 +0800)
committerGopher Robot <gobot@golang.org>
Tue, 25 Apr 2023 01:14:08 +0000 (01:14 +0000)
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>

src/html/template/escape.go
src/html/template/transition.go

index c20e6b0c342132841f3a4e5233a8652918556406..4ba1d6b31897ea33b0412c1a6dfc929f784fb2da 100644 (file)
@@ -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
index 92eb3519063c9ea0fd17eb8344939ab4871d8ba8..3b9fbfb68f536d1858863f6bc7dab8d90a92d69e 100644 (file)
@@ -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