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

Cannot create form #4

Open
MihailovDev opened this issue May 21, 2020 · 0 comments
Open

Cannot create form #4

MihailovDev opened this issue May 21, 2020 · 0 comments

Comments

@MihailovDev
Copy link

const dom = require('get-dom')
const document = dom.document(); //global
const form = document.createElement('form');

form.submit(); //this gives the following error:

Error: Not implemented: HTMLFormElement.prototype.submit
at module.exports (/srv/node_modules/jsdom/lib/jsdom/browser/not-implemented.js:9:17)
at HTMLFormElementImpl.submit (/srv/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFormElement-impl.js:78:5)
at HTMLFormElement.submit (/srv/node_modules/jsdom/lib/jsdom/living/generated/HTMLFormElement.js:19:23)
at createForm (/srv/index.js:176:18)
at exports.naplata.functions.region.https.onRequest (/srv/index.js:25:27)
at cloudFunction (/srv/node_modules/firebase-functions/lib/providers/https.js:49:16)
at /worker/worker.js:783:7
at /worker/worker.js:766:11
at _combinedTickCallback (internal/process/next_tick.js:132:7)
at process._tickDomainCallback (internal/process/next_tick.js:219:9) undefined

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

1 participant