From b5b0cd159773255b98e7abd948133d64fa1d3989 Mon Sep 17 00:00:00 2001 From: "rafaelw@chromium.org" Date: Sat, 9 Mar 2013 01:29:38 +0000 Subject: [PATCH] [HTMLTemplateElement] processTemplateEndTag() needs to check for template in html scope https://bugs.webkit.org/show_bug.cgi?id=111880 Reviewed by Eric Seidel. Source/WebCore: Currently, handling exits with an error if there is not a template tag "in scope" which will be true if there is a table (for instance) below a template. This makes it so that the search (correctly) examines the entire element stack. Tests added to html5lib testing library. * html/parser/HTMLTreeBuilder.cpp: (WebCore::HTMLTreeBuilder::processTemplateEndTag): LayoutTests: * html5lib/resources/template.dat: git-svn-id: https://svn.webkit.org/repository/webkit/trunk@145293 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- LayoutTests/ChangeLog | 9 ++++++ LayoutTests/html5lib/resources/template.dat | 39 ++++++++++++++++++++++++++ Source/WebCore/ChangeLog | 16 +++++++++++ Source/WebCore/html/parser/HTMLTreeBuilder.cpp | 3 +- 4 files changed, 66 insertions(+), 1 deletion(-) diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog index a8cdb80..f6a6736 100644 --- a/LayoutTests/ChangeLog +++ b/LayoutTests/ChangeLog @@ -1,3 +1,12 @@ +2013-03-08 Rafael Weinstein + + [HTMLTemplateElement] processTemplateEndTag() needs to check for template in html scope + https://bugs.webkit.org/show_bug.cgi?id=111880 + + Reviewed by Eric Seidel. + + * html5lib/resources/template.dat: + 2013-03-08 Ryosuke Niwa Add a failing test expectation per bug 111901. diff --git a/LayoutTests/html5lib/resources/template.dat b/LayoutTests/html5lib/resources/template.dat index 7f9bf59..691d5e0 100644 --- a/LayoutTests/html5lib/resources/template.dat +++ b/LayoutTests/html5lib/resources/template.dat @@ -1191,3 +1191,42 @@ |