Bug 109090 - [HTMLTemplateElement] Non </template> end tags should be ignored in "template contents" insertion mode.
Summary: [HTMLTemplateElement] Non </template> end tags should be ignored in "template...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Rafael Weinstein
URL:
Keywords:
Depends on:
Blocks: 103547
  Show dependency treegraph
 
Reported: 2013-02-06 13:49 PST by Rafael Weinstein
Modified: 2013-02-06 16:17 PST (History)
6 users (show)

See Also:


Attachments
Patch (2.73 KB, patch)
2013-02-06 13:51 PST, Rafael Weinstein
no flags Details | Formatted Diff | Diff
Patch for landing (2.97 KB, patch)
2013-02-06 14:40 PST, Rafael Weinstein
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Weinstein 2013-02-06 13:49:05 PST
Otherwise, the current context gets set to "in body" when it should remain undecided.
Comment 1 Rafael Weinstein 2013-02-06 13:51:39 PST
Created attachment 186913 [details]
Patch
Comment 3 Adam Barth 2013-02-06 13:55:44 PST
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 4 Rafael Weinstein 2013-02-06 14:39:59 PST
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.
Comment 5 Rafael Weinstein 2013-02-06 14:40:15 PST
Created attachment 186924 [details]
Patch for landing
Comment 6 WebKit Review Bot 2013-02-06 16:16:59 PST
Comment on attachment 186924 [details]
Patch for landing

Clearing flags on attachment: 186924

Committed r142049: <http://trac.webkit.org/changeset/142049>
Comment 7 WebKit Review Bot 2013-02-06 16:17:03 PST
All reviewed patches have been landed.  Closing bug.