Hi,
My logic was flawed for separating the logic to a separate function - and now I've fixed the infinate loop.
I've found a fix for IE picking up attributes which aren't set - as shown here as part of my loop syntax - but it still doesnt cover all of them!:
Basically, IE sets some of an elements nodes ie.
onmouseover=null by default.
class='' by default (so cant catch with a != null statement!)
contentEditable = 'inherit' by default
and on..
So bascially when I look through the DOM Inspector in firefox - it shows me the two element nodeNames that I have set - in this case border and id.
So when I loop I'm only looping two elements - IE tells me there are 95 elements (with various default values).
I dont want to loop all the 95 elements - and as I dynamically have different nodeNames set for different elements.
Does anybody know if there is a way in IE that will just get the set nodeNames and not include the default ones ?