The following extremely simply JavaScript code:
[code]
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN” “http://www.w3.org/TR/html4/strict.dtd”>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″>
<meta http-equiv=”Content-Style-Type” content=”text/css”>
<meta http-equiv=”Content-Script-Type” content=”text/javascript”>
<script type=”text/javascript”>
onload=function(){
var n=document.getElementsByTagName(‘div’)[0];
alert(n.innerHTML);
}
</script>
</head>
<body>
<div>foo</div>
</body>
</html>
alerts the innerHTML content. Not in Firefox 3.6.8, which alerts a blank value.
What the f??
I know that innerHTML is not a standard DOM method, but it used to be a crossbrowser one since FF 1.5, right?