I'm working on a collapsible outline navigation system for my company's new site and I've got it working fine in IE8, but in Firefox the list and nodes load fully extended. (http://www.ghjohnsontrading.com/elys...rnishings.html) I asked someone for help debugging and we think it's a problem with this area:
Not returning the proper number of nodes in Firefox because of the known white-space bug of evil. It's collapsing fine in IE8, Chrome & Safari
(side note: though in Chrome and Safari I have heinous black boxes around my "+" and "-" signs - I think I can fix that by adjusting the line height, any thoughts? It fixed in IE by sticking in a border=0 o.img function in my outline.css file)
but Firefox is refusing to cooperate. I'm new at JavaScript and this is really irritating me, I hope someone can help? Here's a complete list of the files/pages I'm using/drawing from if you'd like to see complete code:
I think that should be everything. I hope someone who's better at this than I am can help :)
Code:
function outlineInitOutline(outline)
{
var kids = outline.childNodes;
for (var i = 0; (i < kids.length); i++) {
var kid = kids[i];
if (kid.nodeName == "LI") {
outlineInitItem(kid);
}
}
}
(side note: though in Chrome and Safari I have heinous black boxes around my "+" and "-" signs - I think I can fix that by adjusting the line height, any thoughts? It fixed in IE by sticking in a border=0 o.img function in my outline.css file)
but Firefox is refusing to cooperate. I'm new at JavaScript and this is really irritating me, I hope someone can help? Here's a complete list of the files/pages I'm using/drawing from if you'd like to see complete code:
I think that should be everything. I hope someone who's better at this than I am can help :)
Comment