This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Functionally we want templates to be declared anywhere and be able to declare anything. That said, I suspect this behavior could confuse some authors who mistakenly put content in a template that would normally be inappropriate for the context in which the template has been declared (e.g. <table><template><div>). To help authors identify these scenarios (which are likely mistakes), I suggest we consider including context-sensitive parse errors. Functionally everything would still parse the same, but we would trigger an error for unexpected content (like <table><template><div>). We would not trigger these new errors for templates declared within <head> regardless of content.
Changing the category: From: WebAppsWG => Components Model To: WHATWG => HTML
This should not have been moved without considering whether the issue was already resolved, which I think it is.