Try the following:
At around line 119 of the JavaScript file, replace this code:
Code:
if (!element || element.tagName.toLowerCase() != 'form') {
element = document.getElementById(name+'ValangValidator')
}
if (!element|| element.tagName.toLowerCase() != 'script') {
throw 'unable to find form with ID \'' + name + '\' or script element with ID \'' + name +'ValangValidator\''
}
with this code:
Code:
if (!element || element.tagName.toLowerCase() != 'form') {
element = document.getElementById(name+'ValangValidator')
if (!element|| element.tagName.toLowerCase() != 'script') {
throw 'unable to find form with ID \'' + name + '\' or script element with ID \'' + name +'ValangValidator\''
}
}
In the original code, it ends up checking a reference to the form element for a 'script' tagname and throwing the 'unable to find form or script element' exception.