Fix missing form method/action

This commit is contained in:
Dennis Eichhorn 2018-09-12 20:46:36 +02:00
parent be313453d6
commit 9270506623

View File

@ -313,8 +313,8 @@
return; return;
} }
this.method = e.attributes['method'].value; this.method = typeof e.attributes['method'] !== 'undefined' ? e.attributes['method'].value : 'EMPTY';
this.action = e.action; this.action = typeof e.action !== 'undefined' ? e.action : 'EMPTY';
const elements = this.getFormElements(), const elements = this.getFormElements(),
length = elements.length; length = elements.length;