Title: [121683] trunk/Source/WebCore
- Revision
- 121683
- Author
- [email protected]
- Date
- 2012-07-02 09:08:26 -0700 (Mon, 02 Jul 2012)
Log Message
A start "body" tag in the "in body" insertion mode is a parse error
https://bugs.webkit.org/show_bug.cgi?id=90373
Patch by Kwang Yul Seo <[email protected]> on 2012-07-02
Reviewed by Eric Seidel.
According to HTML5 specification (http://www.w3.org/TR/html5/tree-construction.html#parsing-main-inbody),
a start "body" tag in the "in body" insertion mode is a parse error. So parseError(token) is required here.
No behavior change because parseError(token) is just a marker.
* html/parser/HTMLTreeBuilder.cpp:
(WebCore::HTMLTreeBuilder::processStartTagForInBody):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (121682 => 121683)
--- trunk/Source/WebCore/ChangeLog 2012-07-02 15:59:35 UTC (rev 121682)
+++ trunk/Source/WebCore/ChangeLog 2012-07-02 16:08:26 UTC (rev 121683)
@@ -1,3 +1,17 @@
+2012-07-02 Kwang Yul Seo <[email protected]>
+
+ A start "body" tag in the "in body" insertion mode is a parse error
+ https://bugs.webkit.org/show_bug.cgi?id=90373
+
+ Reviewed by Eric Seidel.
+
+ According to HTML5 specification (http://www.w3.org/TR/html5/tree-construction.html#parsing-main-inbody),
+ a start "body" tag in the "in body" insertion mode is a parse error. So parseError(token) is required here.
+ No behavior change because parseError(token) is just a marker.
+
+ * html/parser/HTMLTreeBuilder.cpp:
+ (WebCore::HTMLTreeBuilder::processStartTagForInBody):
+
2012-07-02 Raphael Kubo da Costa <[email protected]>
[EFL] Unreviewed build fix with ENABLE_NETSCAPE_PLUGIN_API after r121467.
Modified: trunk/Source/WebCore/html/parser/HTMLTreeBuilder.cpp (121682 => 121683)
--- trunk/Source/WebCore/html/parser/HTMLTreeBuilder.cpp 2012-07-02 15:59:35 UTC (rev 121682)
+++ trunk/Source/WebCore/html/parser/HTMLTreeBuilder.cpp 2012-07-02 16:08:26 UTC (rev 121683)
@@ -751,6 +751,7 @@
return;
}
if (token.name() == bodyTag) {
+ parseError(token);
if (!m_tree.openElements()->secondElementIsHTMLBodyElement() || m_tree.openElements()->hasOnlyOneElement()) {
ASSERT(isParsingFragment());
return;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes