'use strict';

var form = require('../valid-html-form');

module.exports = function () {
	var event = form(this).ownerDocument.createEvent('HTMLEvents');
	event.initEvent('submit', true, true);
	this.dispatchEvent(event);
	return event;
};

'use strict';

var form = require('../valid-html-form-element');

module.exports = function () {
	var event = form(this).ownerDocument.createEvent('HTMLEvents');
	event.initEvent('submit', true, true);
	this.dispatchEvent(event);
	return event;
};

Use full name of HTMLFormElement
Use full name of HTMLFormElement
