Tema: Problema ie9
Ver Mensaje Individual
  #2 (permalink)  
Antiguo 28/05/2014, 04:13
Avatar de Triby
Triby
Mod on free time
 
Fecha de Ingreso: agosto-2008
Ubicación: $MX->Gto['León'];
Mensajes: 10.106
Antigüedad: 15 años, 8 meses
Puntos: 2237
Respuesta: Problema ie9

Usa el operador typeof antes de comparar el valor

Código Javascript:
Ver original
  1. if(typeof this.parentNode.nextSibling.childNodes[0].style.display == 'undefined'
  2.     || this.parentNode.nextSibling.childNodes[0].style.display == 'none') {
  3.           // Aquí lo que pretendas hacer
  4. }

Porqué usas .style.display = '' para "mostrar" el div?, digo, lo más correcto sería block, inline-block, etc.
__________________
- León, Guanajuato
- GV-Foto