Add validator support for the <template> element.