8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
formdata
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
It seems like the formdata event is not implemented.
20.14.0
25.0.1
const {JSDOM} = require('jsdom'); new JSDOM(`<!DOCTYPE html><html lang="en"> <body> <form action="" id="form" method="post"> <div> <label for="name">Name</label> <input name="name" id="fullName" type="text" value="Elvis Presley"> </div> </form> <script> console.log(fullName.value); addEventListener('formdata', () => { console.log('This line should be logged'); }); const data = new FormData(form); </script> </body> </html>`, { runScripts: "dangerously" });
Elvis Presley This line should be logged
Elvis Presley
Browser demo: https://codepen.io/MartijnCuppens/pen/azodpRG?editors=1011
(Edit:) Seems like you knew this already:
jsdom/lib/jsdom/living/xhr/FormData-impl.js
Line 179 in 04541b3
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It seems like the
formdata
event is not implemented.Basic info:
20.14.0
25.0.1
Minimal reproduction case
How does similar code behave in browsers?
Expected behaviour in console
Current behaviour
Browser demo: https://codepen.io/MartijnCuppens/pen/azodpRG?editors=1011
(Edit:) Seems like you knew this already:
jsdom/lib/jsdom/living/xhr/FormData-impl.js
Line 179 in 04541b3
The text was updated successfully, but these errors were encountered: