Fix parsing values of option elements in forms #162

Merged
BehindTheMath merged 2 commits from fix/form-option-element into master 2018-05-30 14:39:09 -05:00
Showing only changes of commit 5885d76f37 - Show all commits

View File

@@ -68,7 +68,7 @@ function parseFormElements(el) {
for (var i = 0; i < element.options.length; i++) {
opt = element.options[i]
if (opt.selected) {
values.push(opt.value || opt.text)
values.push(opt.hasAttribute("value") ? opt.value : opt.text)
}
}
}