Tema: Problema ie9
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/05/2014, 03:39
Popkorn
 
Fecha de Ingreso: abril-2014
Mensajes: 11
Antigüedad: 10 años
Puntos: 0
Problema ie9

Buenas! Estaba haciendo un spoiler tal que asi,

Código:
<div class="divspoiler"><input onclick="if (this.parentNode.nextSibling.childNodes[0].style.display != ''){ this.parentNode.nextSibling.childNodes[0].style.display = ''; this.value = 'Ocultar'; } else { this.parentNode.nextSibling.childNodes[0].style.display = 'none'; this.value = 'Mostrar'; }" type="button" value="Mostrar" /></div>
<div style="text-align: left;">
<div class="spoiler" style="display: none;"><img src="images/Captura.PNG" border="0" width="578" height="580" /></div>
</div>
El problema viene en el uso del mismo en I9 me da error.. SCRIPT5007: Unable to get value of the property 'style': object is null or undefined
home, line 124 character 1
En cambio si pongo compatibilidad con I8 si funciona.. He leido que es un conocido problema pero no consigo solución