[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    innerHTML problem?
From:       Martin Jordan <fanti () spin ! de>
Date:       2004-08-31 13:42:32
Message-ID: 200408311542.32220.fanti () spin ! de
[Download RAW message or body]

hi there,

shouldn't document.getElementById( ... ).innerHTML grant access to the inner 
value of the html-tag and not to the whole itself?

=========
<html>
<head>
<script language="JavaScript">
function foo( )
{
  alert( document.getElementById( 'myId' ).innerHTML );
}
</script>
</head>
<body onLoad="foo( )">
<p id="myId">hello world</p>
</body>
</html>
=========

this shows an alertbox displaying the whole tag:

<p id="myId">hello world</p>

and not only the inner 'hello world' content.

tested with konqueror 3.3. (debian/unstable). i haven't had this behavior with 
older versions of konqueror.

http://fanti.staff.spin.de/jstest.html

regards,
martin

-- 
Martin Jordan - SPiN AG
fanti@spin.de

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic