Hi.
Suppose I have something like this: http://jsfiddle.net/3mJJm/27/.
Select draw a rectangle on a map, select some area and click validate.
There will be exception: Uncaught TypeError: Object #<SVGAnimatedString> has no method 'indexOf'
For now the only possible workaround I found is added guard condition for SVGAnimatedString:
//added code
Is there more robust workaround?
Thanks in advance.
Suppose I have something like this: http://jsfiddle.net/3mJJm/27/.
Select draw a rectangle on a map, select some area and click validate.
There will be exception: Uncaught TypeError: Object #<SVGAnimatedString> has no method 'indexOf'
For now the only possible workaround I found is added guard condition for SVGAnimatedString:
_findMessageContainer:
function
(fieldName) {
var
locators = kendo.ui.validator.messageLocators,
name,
containers = $(),
children =
this
.element[0].getElementsByTagName(
"*"
);
for
(
var
idx = 0, length = children.length; idx < length; idx++) {
var
element = children[idx];
//added code
if
(element.className
instanceof
SVGAnimatedString)
continue
;
if
(element.className.indexOf(INVALIDMSG) > -1) {
var
attr = element.getAttribute(kendo.attr(
"for"
));
if
(attr === fieldName) {
containers = containers.add(element);
}
}
}
Is there more robust workaround?
Thanks in advance.