Otherwise, the current context gets set to "in body" when it should remain undecided.
Created attachment 186913 [details] Patch
Spec: https://dvcs.w3.org/hg/webcomponents/raw-file/38536d37fb82/spec/templates/index.html#template-contents-insertion-mode
Comment on attachment 186913 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=186913&action=review > LayoutTests/html5lib/resources/template.dat:960 > +<body><template></div><div>Foo</div><template></template><tr></tr> Should we add a test for <body><div><template></div><tr><td>Foo</td></tr></template> as well?
Comment on attachment 186913 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=186913&action=review >> LayoutTests/html5lib/resources/template.dat:960 >> +<body><template></div><div>Foo</div><template></template><tr></tr> > > Should we add a test for > > <body><div><template></div><tr><td>Foo</td></tr></template> > > as well? good idea. done.
Created attachment 186924 [details] Patch for landing
Comment on attachment 186924 [details] Patch for landing Clearing flags on attachment: 186924 Committed r142049: <http://trac.webkit.org/changeset/142049>
All reviewed patches have been landed. Closing bug.