Changeset 121683 in webkit


Ignore:
Timestamp:
Jul 2, 2012 9:08:26 AM (12 years ago)
Author:
commit-queue@webkit.org
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 <skyul@company100.net> 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):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r121678 r121683  
     12012-07-02  Kwang Yul Seo  <skyul@company100.net>
     2
     3        A start "body" tag in the "in body" insertion mode is a parse error
     4        https://bugs.webkit.org/show_bug.cgi?id=90373
     5
     6        Reviewed by Eric Seidel.
     7
     8        According to HTML5 specification (http://www.w3.org/TR/html5/tree-construction.html#parsing-main-inbody),
     9        a start "body" tag in the "in body" insertion mode is a parse error. So parseError(token) is required here.
     10        No behavior change because parseError(token) is just a marker.
     11
     12        * html/parser/HTMLTreeBuilder.cpp:
     13        (WebCore::HTMLTreeBuilder::processStartTagForInBody):
     14
    1152012-07-02  Raphael Kubo da Costa  <rakuco@webkit.org>
    216
  • trunk/Source/WebCore/html/parser/HTMLTreeBuilder.cpp

    r120938 r121683  
    752752    }
    753753    if (token.name() == bodyTag) {
     754        parseError(token);
    754755        if (!m_tree.openElements()->secondElementIsHTMLBodyElement() || m_tree.openElements()->hasOnlyOneElement()) {
    755756            ASSERT(isParsingFragment());
Note: See TracChangeset for help on using the changeset viewer.