HTMLStackItem should include <template> as a special tag
authorrafaelw@chromium.org <rafaelw@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Mar 2013 17:24:00 +0000 (17:24 +0000)
committerrafaelw@chromium.org <rafaelw@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Mar 2013 17:24:00 +0000 (17:24 +0000)
https://bugs.webkit.org/show_bug.cgi?id=113016

Reviewed by Eric Seidel.

Source/WebCore:

New test added to html5lib suite.

* html/parser/HTMLStackItem.h:
(WebCore::HTMLStackItem::isSpecialNode):

LayoutTests:

* html5lib/resources/template.dat:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@146904 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/html5lib/resources/template.dat
Source/WebCore/ChangeLog
Source/WebCore/html/parser/HTMLStackItem.h

index 10fb908..edac9fa 100644 (file)
@@ -1,3 +1,12 @@
+2013-03-26  Rafael Weinstein  <rafaelw@chromium.org>
+
+        HTMLStackItem should include <template> as a special tag
+        https://bugs.webkit.org/show_bug.cgi?id=113016
+
+        Reviewed by Eric Seidel.
+
+        * html5lib/resources/template.dat:
+
 2013-03-26  Vsevolod Vlasov  <vsevik@chromium.org>
 
         Web Inspector: Distinguish breakpoints and breakpoint locations in BreakpointManager API
index 65aa9b5..206ad46 100644 (file)
 |                 <div>
 |   <body>
 |     <div>
+
+#data
+<dummy><template><span></dummy>
+#errors
+#document
+| <html>
+|   <head>
+|   <body>
+|     <dummy>
+|       <template>
+|         content
+|           <span>
index 936511b..a1f9b87 100644 (file)
@@ -1,3 +1,15 @@
+2013-03-26  Rafael Weinstein  <rafaelw@chromium.org>
+
+        HTMLStackItem should include <template> as a special tag
+        https://bugs.webkit.org/show_bug.cgi?id=113016
+
+        Reviewed by Eric Seidel.
+
+        New test added to html5lib suite.
+
+        * html/parser/HTMLStackItem.h:
+        (WebCore::HTMLStackItem::isSpecialNode):
+
 2013-03-26  Vsevolod Vlasov  <vsevik@chromium.org>
 
         Web Inspector: Distinguish breakpoints and breakpoint locations in BreakpointManager API
index 76df646..d9354bb 100644 (file)
@@ -196,6 +196,9 @@ public:
             || tagName == HTMLNames::tableTag
             || isTableBodyContextElement()
             || tagName == HTMLNames::tdTag
+#if ENABLE(TEMPLATE_ELEMENT)
+            || tagName == HTMLNames::templateTag
+#endif
             || tagName == HTMLNames::textareaTag
             || tagName == HTMLNames::thTag
             || tagName == HTMLNames::titleTag