mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 04:34:44 +00:00
Merge pull request #1532 from lightpanda-io/document_scrollingElement
Add document.scrollingElement read-only property
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
|
||||
<script id=documentElement>
|
||||
testing.expectEqual($('#the_body').parentNode, document.documentElement);
|
||||
testing.expectEqual(document.documentElement, document.scrollingElement);
|
||||
</script>
|
||||
|
||||
<script id=title>
|
||||
|
||||
@@ -920,6 +920,7 @@ pub const JsApi = struct {
|
||||
pub const URL = bridge.accessor(Document.getURL, null, .{});
|
||||
pub const documentURI = bridge.accessor(Document.getURL, null, .{});
|
||||
pub const documentElement = bridge.accessor(Document.getDocumentElement, null, .{});
|
||||
pub const scrollingElement = bridge.accessor(Document.getDocumentElement, null, .{});
|
||||
pub const children = bridge.accessor(Document.getChildren, null, .{});
|
||||
pub const readyState = bridge.accessor(Document.getReadyState, null, .{});
|
||||
pub const implementation = bridge.accessor(Document.getImplementation, null, .{});
|
||||
|
||||
Reference in New Issue
Block a user