fix(2848) support templates with td/tr/th/tbody root nodes