[Webkit-unassigned] [Bug 193820] New: document.scrollingElement does not conform to CSSOM View Module standard
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jan 25 03:53:44 PST 2019
https://bugs.webkit.org/show_bug.cgi?id=193820
Bug ID: 193820
Summary: document.scrollingElement does not conform to CSSOM
View Module standard
Product: WebKit
Version: Safari 12
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: HTML DOM
Assignee: webkit-unassigned at lists.webkit.org
Reporter: robbert.brak at gmail.com
CC: cdumez at apple.com
According to the CSSOM View Module standard, calling document.scrollingElement should work as follows (https://drafts.csswg.org/cssom-view/#extensions-to-the-document-interface):
The scrollingElement attribute, on getting, must run these steps:
If the Document is in quirks mode, follow these substeps:
If the HTML body element exists, and it is not potentially scrollable, return the HTML body element and abort these steps.
Return null and abort these steps.
If there is a root element, return the root element and abort these steps.
Return null.
However, calling document.scrollElement on a document that is *not* in quirks mode returns the HTML body element, rather than the root element. I believe that this is incorrect.
The standard adds the following note:
> Note: For non-conforming user agents that always use the quirks mode behavior for scrollTop and scrollLeft, the scrollingElement attribute is expected to also always return the HTML body element (or null if it does not exist).
It looks like this might apply to Safari. In that case, I believe Safari should become a conforming user agent.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190125/33bfdee2/attachment.html>
More information about the webkit-unassigned
mailing list