Skip to content
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

HTML5: Are 'input' and 'change' event callbacks implemented? #23523

Open
alibabashack opened this issue Jan 29, 2025 · 3 comments
Open

HTML5: Are 'input' and 'change' event callbacks implemented? #23523

alibabashack opened this issue Jan 29, 2025 · 3 comments

Comments

@alibabashack
Copy link

Hi, although the HTML5 API allows to subscribe to a lot of events, I don't see support for the input and change events required in order to perform form validation tasks from wasm. I think these events are simply not implemented or am I mistaken?

Is there something complex about these event types? Otherwise I would like to try to implement them ...

@sbc100
Copy link
Collaborator

sbc100 commented Jan 29, 2025

Sounds like perhaps we just never had demand for those. Feel free to send a PR.

@curiousdannii
Copy link
Contributor

curiousdannii commented Jan 31, 2025

I filed this earlier, including a suggestion of how to implement it: #21960
But that's more about using input events in SDL where the fact that it's an input event rather than a keydown shouldn't matter.

@alibabashack
Copy link
Author

Now, that @curiousdannii mentions specific Android behavior: Is there a quick way to let the test harness (test/runner) serve a test page as HTTP server to an external device (e.g. an Android phone)? Or is there a better approach to verify behavior on other devices? (I am not familiar with web development; embedded C++ guy here :)

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

No branches or pull requests

3 participants