-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I get a reference to the document
object?
#71
Comments
A good question! This wasn't actually super easy to do before so I've been thinking a bit and have decided to tweak how some functions are accessed exposed. I've now written up an example of how to do this as well! For now that functionality is only available on master, but I'll publish 0.2 soon with that! |
Please let me know though if the example is confusing or otherwise needs to be fleshed out more, I'd love to expand it! |
@alexcrichton That example is quite enough. One doubt though, why can't |
Ah currently this is just the main way to add methods to an otherwise "bland |
On js side,
document
or ratherwindow.document
provides the reference to thedocument
object contained in the current window. Is there any way I can access that document using wasm_bindgen? Or do I need to write a js file exposes the required functionality of the document API?The text was updated successfully, but these errors were encountered: