You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to propose addition of document_body() and document_element() helper functions to gloo-utils.
Motivation
So projects wanting to access document.documentElement and document.body don't have to write their own helper functions calling the web_sys functions + unwrapping.
Summary
I would like to propose addition of
document_body()
anddocument_element()
helper functions to gloo-utils.Motivation
So projects wanting to access
document.documentElement
anddocument.body
don't have to write their own helper functions calling theweb_sys
functions + unwrapping.Detailed Explanation
Drawbacks, Rationale, and Alternatives
Drawbacks: -
Alternatives: -
Rationale / prior art: I have these helpers in
caniuse.rs
' code base: https://github.com/jplatte/caniuse.rs/blob/21cae646a489bec4537e6628492c1669a89221fb/src/util.rs#L15-L21Unresolved Questions
-
The text was updated successfully, but these errors were encountered: