aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/html/render.go
diff options
context:
space:
mode:
authorAndrew Balholm <andybalholm@gmail.com>2011-11-30 15:37:41 +1100
committerNigel Tao <nigeltao@golang.org>2011-11-30 15:37:41 +1100
commit3b3922771a1ace2e4781f7e53a16cf566f2c27bf (patch)
treef45c9f95c91b59a8c96ff738429b7affd270e71a /src/pkg/html/render.go
parente32f4ba77d920411e916cece41b3a40e0db0a074 (diff)
downloadgo-3b3922771a1ace2e4781f7e53a16cf566f2c27bf.tar.xz
html: parse <xmp> tags
Pass tests5.dat, test 10: <p><xmp></xmp> | <html> | <head> | <body> | <p> | <xmp> Also pass the remaining tests in tests5.dat. R=nigeltao CC=golang-dev https://golang.org/cl/5440062
Diffstat (limited to 'src/pkg/html/render.go')
-rw-r--r--src/pkg/html/render.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/html/render.go b/src/pkg/html/render.go
index 2a57566fd4..7e1a466965 100644
--- a/src/pkg/html/render.go
+++ b/src/pkg/html/render.go
@@ -185,7 +185,7 @@ func render1(w writer, n *Node) error {
// Render any child nodes.
switch n.Data {
- case "iframe", "noembed", "noframes", "noscript", "plaintext", "script", "style":
+ case "iframe", "noembed", "noframes", "noscript", "plaintext", "script", "style", "xmp":
for _, c := range n.Child {
if c.Type != TextNode {
return fmt.Errorf("html: raw text element <%s> has non-text child node", n.Data)