zoltan-dulac/html5Widgets — Issue #2: range throws error when not in a form
Author: dotnetwise
Created: 2011-12-28 04:43:29+00:00
State: open

I have found a bug when a range input is not within a form.

I have fixed it by adding to this line as below:
parentForm = DOMHelpers.getAncestorByTagName(node, 'form');

parentForm = DOMHelpers.getAncestorByTagName(node, 'form') || document.body;
//fallback to document.body - which works - yey