Fix <template> handling and specs on old IE