Hallo,
Warum bekomme ich hierbei ein false in allen Browsern?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>&shy; Test</title>
<script type="text/javascript">
[code lang=javascript]function foo() {
alert("­" == document.getElementsByTagName("p")[0].innerHTML);
}
</script>
</head>
<body onload="foo();">
<p>­</p>
</body>
</html>[/code]
Wenn ich das gleiche mit & mache dann kommt true.
Jeena