This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 10158 - HTML5 parser: comments after </body> and after </html> should be put in body
Summary: HTML5 parser: comments after </body> and after </html> should be put in body
Status: RESOLVED WONTFIX
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-13 21:39 UTC by Simon Pieters
Modified: 2010-10-04 14:54 UTC (History)
6 users (show)

See Also:


Attachments

Description Simon Pieters 2010-07-13 21:39:00 UTC
Consider http://software.hixie.ch/utilities/js/live-dom-viewer/saved/544

Pre-HTML5 IE, Gecko, WebKit and Opera put the comments in body (or the current element) instead of after body and after html. Is there a reason to change from the status quo?
Comment 1 Ian 'Hixie' Hickson 2010-07-14 21:38:49 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: Unless there's a compat reason to have the old behaviour, the new behaviour is more sensible. I only wish we could do it for whitespace too.
Comment 2 Simon Pieters 2010-07-14 22:06:20 UTC
http://www.google.com/codesearch?q=document%5C.lastChild
http://www.google.com/codesearch?q=%3C%2Fbody%3E%5Cs%2A%3C%21
http://www.google.com/codesearch?q=%3C%2Fhtml%3E%5Cs%2A%3C%21

This only shows that there are pages that use document.lastChild (and document.lastChild.lastChild), and that there are pages with comments after </body> or </html>. I don't know if there are any pages that use both...