Bug 1011831 - Support <template> element in XHTML parser. r=hsivonen