This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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?
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.
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...