fixed firefox issue with innerText on template creation