hyrocles: RegExp - Bug im Firefox ?

Beitrag lesen

Hi Cheatah,

  
<html>  
 <head>  
  <script type="text/Javascript">  
   onload = function(){  
    var myContent = '';  
    _help = new test();  
  
    for(var x in _help){  
     myContent += _help[x].toString();  
    }  
    myContent = myContent.replace(new RegExp( "\t", "g"),'&nbsp;&nbsp;&nbsp;');  
    myContent = myContent.replace(new RegExp( "\n", "g"),'<br>');  
    document.getElementById('fu').innerHTML = myContent;  
   }  
  
   test = function(){  
    this.hilfe = function(){  
     alert('hi ho');  
    }  
   }  
  
  </script>  
 </head>  
 <body>  
  <div id="fu"></div>  
 </body>  
</html>  

so wenn du die seite im ie aufrufst siehst du alles eingerückt im FF nicht ich hab FF Version 2.0.0.16