Bug 90373

Summary: A start "body" tag in the "in body" insertion mode is a parse error
Product: WebKit Reporter: Kwang Yul Seo <skyul>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, aestes, eric, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Kwang Yul Seo 2012-07-02 04:56:13 PDT
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.


8.2.5.4.7 The "in body" insertion mode

...

-> A start tag whose tag name is "body"
Parse error.

If the second element on the stack of open elements is not a body element, or, if the stack of open elements has only one node on it, then ignore the token. (fragment case)

Otherwise, set the frameset-ok flag to "not ok"; then, for each attribute on the token, check to see if the attribute is already present on the body element (the second element) on the stack of open elements, and if it is not, add the attribute and its corresponding value to that element.
Comment 1 Kwang Yul Seo 2012-07-02 05:07:48 PDT
Created attachment 150399 [details]
Patch
Comment 2 Eric Seidel (no email) 2012-07-02 09:01:07 PDT
Comment on attachment 150399 [details]
Patch

OK.
Comment 3 WebKit Review Bot 2012-07-02 09:08:41 PDT
Comment on attachment 150399 [details]
Patch

Clearing flags on attachment: 150399

Committed r121683: <http://trac.webkit.org/changeset/121683>
Comment 4 WebKit Review Bot 2012-07-02 09:08:46 PDT
All reviewed patches have been landed.  Closing bug.