Browse Source

go.net/html: Fix comment handling for "in select" insertion mode

LGTM=andybalholm, nigeltao
R=golang-codereviews, gobot, nigeltao, andybalholm
CC=golang-codereviews
https://golang.org/cl/93680045
Frederick Kelly Mayle III 11 years ago
parent
commit
5755bc4e75
1 changed files with 1 additions and 1 deletions
  1. 1 1
      html/parse.go

+ 1 - 1
html/parse.go

@@ -1618,7 +1618,7 @@ func inSelectIM(p *parser) bool {
 			}
 			}
 		}
 		}
 	case CommentToken:
 	case CommentToken:
-		p.doc.AppendChild(&Node{
+		p.addChild(&Node{
 			Type: CommentNode,
 			Type: CommentNode,
 			Data: p.tok.Data,
 			Data: p.tok.Data,
 		})
 		})