Skip to content

Commit

Permalink
tagName is always uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Vializ committed May 11, 2017
1 parent ec4ed44 commit 71998c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/amp-form/0.1/form-verifiers.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@ function parseConfig_(script) {
}
}

const submittableTagNames_ = ['button', 'input', 'select', 'textarea'];
const submittableTagNames_ = ['BUTTON', 'INPUT', 'SELECT', 'TEXTAREA'];
/**
* @param {!Element} element
* @return {boolean}
*/
function isSubmittable_(element) {
return submittableTagNames_.includes(element.tagName.toLowerCase());
return submittableTagNames_.includes(element.tagName);
}

/**
Expand Down

0 comments on commit 71998c9

Please sign in to comment.