Skip to content

Commit f5e5bdd

Browse files
namusyakanigeltao
authored andcommitted
html: remove unnecessary namespace checking
Change-Id: I03ebb4369389262b842001e18d0594fd71b19f44 Reviewed-on: https://go-review.googlesource.com/c/138797 Run-TryBot: Kunpei Sakai <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Nigel Tao <[email protected]>
1 parent 4dfa261 commit f5e5bdd

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

html/parse.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,12 +1264,6 @@ func (p *parser) inBodyEndTagFormatting(tagAtom a.Atom) {
12641264
switch commonAncestor.DataAtom {
12651265
case a.Table, a.Tbody, a.Tfoot, a.Thead, a.Tr:
12661266
p.fosterParent(lastNode)
1267-
case a.Template:
1268-
// TODO: remove namespace checking
1269-
if commonAncestor.Namespace == "html" {
1270-
commonAncestor = commonAncestor.LastChild
1271-
}
1272-
fallthrough
12731267
default:
12741268
commonAncestor.AppendChild(lastNode)
12751269
}

0 commit comments

Comments
 (0)