aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/html
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2012-11-21 07:03:38 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2012-11-21 07:03:38 +0000
commitfabcaa8df3d6eb852b87821ef090d31d222870b7 (patch)
tree72455aea0286937aa08cc141e5efc800e4626577 /libgo/go/html
parenta51fb17f48428e7cfc96a72a9f9f87901363bb6b (diff)
downloadgcc-fabcaa8df3d6eb852b87821ef090d31d222870b7.zip
gcc-fabcaa8df3d6eb852b87821ef090d31d222870b7.tar.gz
gcc-fabcaa8df3d6eb852b87821ef090d31d222870b7.tar.bz2
libgo: Update to current version of master library.
From-SVN: r193688
Diffstat (limited to 'libgo/go/html')
-rw-r--r--libgo/go/html/escape.go4
-rw-r--r--libgo/go/html/template/content.go2
-rw-r--r--libgo/go/html/template/error.go4
-rw-r--r--libgo/go/html/template/html.go6
4 files changed, 8 insertions, 8 deletions
diff --git a/libgo/go/html/escape.go b/libgo/go/html/escape.go
index 24cb7af..eff0384 100644
--- a/libgo/go/html/escape.go
+++ b/libgo/go/html/escape.go
@@ -15,7 +15,7 @@ type writer interface {
WriteString(string) (int, error)
}
-// These replacements permit compatibility with old numeric entities that
+// These replacements permit compatibility with old numeric entities that
// assumed Windows-1252 encoding.
// http://www.whatwg.org/specs/web-apps/current-work/multipage/tokenization.html#consume-a-character-reference
var replacementTable = [...]rune{
@@ -51,7 +51,7 @@ var replacementTable = [...]rune{
'\u009D',
'\u017E',
'\u0178', // Last entry is 0x9F.
- // 0x00->'\uFFFD' is handled programmatically.
+ // 0x00->'\uFFFD' is handled programmatically.
// 0x0D->'\u000D' is a no-op.
}
diff --git a/libgo/go/html/template/content.go b/libgo/go/html/template/content.go
index 42ea793..9d1f74f 100644
--- a/libgo/go/html/template/content.go
+++ b/libgo/go/html/template/content.go
@@ -30,7 +30,7 @@ type (
HTMLAttr string
// JS encapsulates a known safe EcmaScript5 Expression, for example,
- // `(x + y * z())`.
+ // `(x + y * z())`.
// Template authors are responsible for ensuring that typed expressions
// do not break the intended precedence and that there is no
// statement/expression ambiguity as when passing an expression like
diff --git a/libgo/go/html/template/error.go b/libgo/go/html/template/error.go
index dcac748..46e49cc 100644
--- a/libgo/go/html/template/error.go
+++ b/libgo/go/html/template/error.go
@@ -102,7 +102,7 @@ const (
//
// {{define "main"}} <script>{{template "helper"}}</script> {{end}}
// {{define "helper"}} document.write(' <div title=" ') {{end}}
- //
+ //
// "helper" does not produce a valid document fragment, so should
// not be Executed directly.
ErrEndContext
@@ -161,7 +161,7 @@ const (
// In the example, there is missing a quote, so it is not clear
// whether {{.}} is meant to be inside a JS string or in a JS value
// context. The second iteration would produce something like
- //
+ //
// <script>var x = ['firstValue,'secondValue]</script>
ErrRangeLoopReentry
diff --git a/libgo/go/html/template/html.go b/libgo/go/html/template/html.go
index 36c88e2..f25f107 100644
--- a/libgo/go/html/template/html.go
+++ b/libgo/go/html/template/html.go
@@ -106,7 +106,7 @@ var htmlNospaceReplacementTable = []string{
'<': "&lt;",
'=': "&#61;",
'>': "&gt;",
- // A parse error in the attribute value (unquoted) and
+ // A parse error in the attribute value (unquoted) and
// before attribute value states.
// Treated as a quoting character by IE.
'`': "&#96;",
@@ -128,7 +128,7 @@ var htmlNospaceNormReplacementTable = []string{
'<': "&lt;",
'=': "&#61;",
'>': "&gt;",
- // A parse error in the attribute value (unquoted) and
+ // A parse error in the attribute value (unquoted) and
// before attribute value states.
// Treated as a quoting character by IE.
'`': "&#96;",
@@ -143,7 +143,7 @@ func htmlReplacer(s string, replacementTable []string, badRunes bool) string {
if repl := replacementTable[r]; len(repl) != 0 {
b.WriteString(s[written:i])
b.WriteString(repl)
- // Valid as long as replacementTable doesn't
+ // Valid as long as replacementTable doesn't
// include anything above 0x7f.
written = i + utf8.RuneLen(r)
}