From 71998c96493a980c67265e0bf6444cd8d7decca5 Mon Sep 17 00:00:00 2001 From: Carlos Vializ Date: Thu, 11 May 2017 10:09:28 -0700 Subject: [PATCH] tagName is always uppercase --- extensions/amp-form/0.1/form-verifiers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/amp-form/0.1/form-verifiers.js b/extensions/amp-form/0.1/form-verifiers.js index 881726bb96dd..43cfad03d329 100644 --- a/extensions/amp-form/0.1/form-verifiers.js +++ b/extensions/amp-form/0.1/form-verifiers.js @@ -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); } /**