Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/02/2007, 13:08
wigglyUtrera
 
Fecha de Ingreso: enero-2007
Mensajes: 405
Antigüedad: 17 años, 3 meses
Puntos: 3
Problema al validar codigo

Hola, tengo el siguiente codigo:

Código PHP:
<script language="JavaScript" type="text/javascript">
<!--
var 
navegador navigator.appName;
if (
navegador == "Microsoft Internet Explorer"){
       
document.write("<style type='text/css' media='all'>@import 'ie.css'; </style>");
}else{
       
document.write('<style type="text/css" media="all">');
             
document.write('@import "otro.css";');
             
document.write('</style>');
}
                                    
//-->
</script> 
y me da los siguiente errores

Código:
1# Error  Line 9 column 83: end tag for element "STYLE" which is not open.

...media='all'>@import 'ie.css'; </style>");

The Validator found an end tag for the above element, but that element is 
not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element 
(if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.

If this error occured in a script section of your document, you should 
probably read this FAQ entry.

✉
2# Error Line 13 column 27: end tag for element "STYLE" which is not open.

 document.write('</style>');
Dice que cierro la etiqueta sin haberla abierto, pero si esta abierta!!


Graciass