Skip to content

DOM Manipulation With Webassembly? #825

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

Open
ghost opened this issue Apr 13, 2019 · 3 comments
Open

DOM Manipulation With Webassembly? #825

ghost opened this issue Apr 13, 2019 · 3 comments
Labels

Comments

@ghost
Copy link

ghost commented Apr 13, 2019

How would that work?

Will you also provide complete webassembly examples?

@coolreader18
Copy link
Member

DOM manipulation is sorta working on master, in a limited form. You can follow the instructions in the README, and then you can do:

from browser import document
elem = document.query_selector("css query")
elem.set_attr("attr", "value")
elem.get_attr("attr")

It's in it's early stages now, but we're working on fleshing it out more.

@windelbouwman
Copy link
Contributor

@coolreader18 how could we document this features in a nice way? Maybe we can add some examples on the website for this.

@youknowone
Copy link
Member

#210 looks like related issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants