#data #errors #comments Space characters in "after body" should be appended to the body node. #document | | | | | " " #data #errors #comments Comment tokens in "after body" should be appended to the "html" element. #document | | | | | #data #errors Unexpected DOCTYPE declaration. #comments DOCTYPE tokens in "after body" should be ignored. #document | | | | #data #errors Second "html" element not allowed. #comments "html" elements in "after body" should be handled like in body and ignored. #document | | | | #data #errors Second "html" element not allowed. #comments "html" elements in "after body" should be handled like in body and ignored, but extra attributes should be added to the root "html" element. #document | | | bgcolor="red" | | #data #errors #comments End "html" tag should not result in parse error. #document | | | | #data #errors #comments EOF should not result in parse error. #document | | | | #data xx #errors Content after end "body" tag. #comments Non-whitespace character tokens should raise parse error, and be processed as "in body". #document | | | | | "xx" #data

#errors Start tag after end "body" tag. #comments Non-html start tags should switch insertion mode to "in body" and processed appropriately. #document | | | | |

#data #errors End tag after end "body" tag. End tag does not match any opened elements. #comments Non-html end tags should switch insertion mode to "in body" and processed appropriately. #document | | | | #data