html5Forms.js icon indicating copy to clipboard operation
html5Forms.js copied to clipboard

range throws error when not in a form

Open dotnetwise opened this issue 13 years ago • 0 comments

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

dotnetwise avatar Dec 28 '11 04:12 dotnetwise