Issue Details (XML | Word | Printable)

Key: VALIDATOR-208
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Niall Pemberton
Reporter: Leo Asanov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons Validator

jcv_isFieldPresent function causes error in IE5

Created: 23/Nov/06 02:52 AM   Updated: 12/Nov/07 07:25 PM
Return to search
Component/s: JavaScript
Affects Version/s: 1.3.0 Release
Fix Version/s: 1.3.1 Release

Time Tracking:
Not Specified

Environment: Internet Explorer 5.01

Resolution Date: 23/Nov/06 01:28 PM


 Description  « Hide
Hi,

In jcv_isFieldPresent function code
"if (field == null || field == undefined)"
causes Javascript error in IE5.

Should be
if (field == null || typeof field == 'undefined')

That way it should work in all browsers.

I guess it would make sense to do a search for other references to "undefined" in javascript code.

Regards,
Leo

P.S. The following link has the instructions on how to run IE5 without need to install it locally. You night find it useful.
http://labs.insert-title.com/labs/Multiple-IEs-in-Windows_article795.aspx



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Niall Pemberton made changes - 23/Nov/06 01:28 PM
Field Original Value New Value
Resolution Fixed [ 1 ]
Assignee Niall Pemberton [ niallp ]
Fix Version/s 1.3.1 [ 12311934 ]
Status Open [ 1 ] Resolved [ 5 ]
Henri Yandell made changes - 12/Nov/07 07:25 PM
Status Resolved [ 5 ] Closed [ 6 ]