[giow] (3) Update the HTML parser to handle <html><head></head><template></template><!---->
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=23002
Affected topics: HTML Syntax and Parsing

git-svn-id: http://svn.whatwg.org/webapps@8218 340c8d12-0b0e-0410-8428-c7bf67bfef74