Build a form with Joomla Jform API and add email field with placeholder, if placeholder not is a email the field is not validate if empty.
if field is empty and not required the validation of email field should be ok
empty email field is not validated
This happen only on IE9
Labels |
Added:
?
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-03-06 19:42:45 |
In IE8 and IE9
form.elements also contains function names
(code is supposed to take care of this ?? but it does not)
After calling (exists in 2 places inside the file)
var self = elem.form.H5Form;
We need to test if "self" is an object aka a form element, and do this:
if (typeof self != 'object') return true;
The return true is needed so that function
validateField(...)
will work properly
Tested fix, i will make a PR soon