Ver Mensaje Individual
  #22 (permalink)  
Antiguo 10/05/2013, 08:06
Avatar de Panino5001
Panino5001
Me alejo de Omelas
 
Fecha de Ingreso: mayo-2004
Ubicación: -34.637167,-58.462984
Mensajes: 5.148
Antigüedad: 20 años
Puntos: 834
Respuesta: TRUCASO para capturar este innerHTML: <!-- <div id="fin">datos y + datos..

Para capturar el último, sin darle muchas vueltas:
Código PHP:
<!-- hostias! -->
<!
DOCTYPE html
<
html
<
head
<
meta charset="utf-8" /> 
<
title></title
<!-- 
hola -->
<
script type="text/javascript"
function 
htmlTree(obj,s){ 
    var 
=|| []; 
    if (
obj.hasChildNodes()) { 
      var 
child obj.firstChild
      while (
child) { 
          if (
child.nodeType === 8) { 
               
r.push(child.nodeValue); 
          } 
        if (
child.nodeType === 1) { 
         
r.concathtmlTree(child,r)); 
        } 
        
child child.nextSibling
      } 
    } 
    
    return 
r
  } 
  
    
onload=function(){var chtmlTree(document.documentElement.parentNode);alert(c[c.length-1]);}; 
</script> 
</head> 

<body> 
<!-- chau --> 

</body> 
</html>
<!-- uf! -->