W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2016

Re: [csswg-drafts] [cssom-view] No browsers honor "the HTML body element" in `offsetTop`

From: Simon Pieters via GitHub <sysbot+gh@w3.org>
Date: Wed, 19 Oct 2016 17:06:10 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-254877077-1476896767-sysbot+gh@w3.org>
It's non-conforming to have a `body` element anywhere other than as 
"the body element", so it's OK to not make sense. There's also 
precedent for similar nonsense, like:

 var body = document.createElement('body');
 body.onload = function() { alert(1) }; // same as window.onload

GitHub Notification of comment by zcorpan
Please view or discuss this issue at 
using your GitHub account
Received on Wednesday, 19 October 2016 17:06:17 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:04 UTC