Explorar el Código

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 hace 12 años
padre
commit
5755bc4e75
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      html/parse.go

+ 1 - 1
html/parse.go

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