Naja currently binds itself onto buttons with an explicit type="submit". However, for form-bound buttons (i.e. nested within a <form> or linked to one via the form attribute), submit is the default type and can be omitted. Naja needs to support this as well and treat clicks on these buttons as form submissions.
Naja currently binds itself onto buttons with an explicit
type="submit"
. However, for form-bound buttons (i.e. nested within a<form>
or linked to one via theform
attribute), submit is the default type and can be omitted. Naja needs to support this as well and treat clicks on these buttons as form submissions.