Something went wrong within the last six months, and now any time I open a page that contains a collapsed paragraph in Firefox the browser briefly stops responding, followed by complaining about a hanging JavaScript function.
The function is this one:
function d2ht_StringToStatesArray(str)
{
var start = 0, end;
var key;
if (str != null && str.length != 0)
{
while (start < str.length)
{
end = str.indexOf(":", start);
key = str.substring(start, end);
start = end + 1;
end = str.indexOf("|", start);
if (end == -1)
end = str.length;
gSecStates[key] = str.substring(start, end);
start = end + 1;
}
}
}
This problem does not reproduce in Internet Explorer or in Chrome.
Anybody have any ideas?