diff --git a/html/parse.go b/html/parse.go index 994c8c50..2bd572ee 100644 --- a/html/parse.go +++ b/html/parse.go @@ -1692,9 +1692,8 @@ func inCellIM(p *parser) bool { return true } // Close the cell and reprocess. - if p.popUntil(tableScope, a.Td, a.Th) { - p.clearActiveFormattingElements() - } + p.popUntil(tableScope, a.Td, a.Th) + p.clearActiveFormattingElements() p.im = inRowIM return false } @@ -2330,4 +2329,4 @@ func ParseFragment(r io.Reader, context *Node) ([]*Node, error) { c = next } return result, nil -} +} \ No newline at end of file diff --git a/html/testdata/go/issues.dat b/html/testdata/go/issues.dat deleted file mode 100644 index ccbf911d..00000000 --- a/html/testdata/go/issues.dat +++ /dev/null @@ -1,24 +0,0 @@ -#data -

-#errors -#document -| -| -| -| -| -|

-|

- -#data -
-#errors -#document -| -| -| -| -| -| -| diff --git a/html/testdata/go/template.dat b/html/testdata/go/template.dat index ceaf0229..46193372 100644 --- a/html/testdata/go/template.dat +++ b/html/testdata/go/template.dat @@ -60,3 +60,15 @@ | | | + +#data +

+#errors +#document +| +| +| +| +| +|

+|