Actions
Bug #1869
closedInfinite recursion (stack overflow) converting value to Javascript object
Start date:
2013-08-26
Due date:
% Done:
0%
Estimated time:
Platforms:
Description
When a node in a temporary tree is passed to an external function (in this case ixsl:set-property) the routine IXSLFunction.convertToJavascript() is called to convert it to a Javascript object. This appears to cause infinite recursion.
I haven't worked out exactly what is happening, but the logic appears to be flawed.
I suspect that the ValueRepresentation being passed is a NodeInfo that is not an HTMLNodeWrapper (specifically, it is a node in a LinkedTree). If this is the case, the logic will fall through to calling convertSequenceToArray, which will get the first item in the sequence (the original NodeInfo), and call convertToJavascript() passing this NodeInfo - which is an infinite recursion.
Please register to edit this issue
Actions