But basically: if templates open a new HTML element, they should also close it. The most common 'broken' template types have separate templates, one of which starts a table, and the other one closes the table. This is very hard to express in an tree-structured DOM, and complicates DOM fixup after templates are updated.