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

List:       kde-bugs-dist
Subject:    Bug#25009: incorrect behaviour div's innerHTML property
From:       rene () schuirink ! net
Date:       2001-04-30 18:29:00
[Download RAW message or body]

Package: kjs
Version: KDE 2.1.1
Severity: normal
Installed from:    Compiled From Sources
Compiler:          gcc 2.95.3
OS:                Linux
OS/Compiler notes: Not Specified

innerHTML property behaves lik outerHTML
besides it doesn't detect closing-tags correctly

With the code below, click on "test1", "test2" or "test3" (div), the innerHTML gets \
displayed in the textarea...

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
  <title>innerHTML / div</title>
</head>
<body>
    <div id="content1" \
onClick="document.getElementById('txt').value=this.innerHTML;">test1</div>  <br>
    <div id="content2" \
onClick="document.getElementById('txt').value=this.innerHTML;">test2</div>  <br>
    <div id="content3" \
onClick="document.getElementById('txt').value=this.innerHTML;">test3</div>  <br>
    <form name="txtEditor">
        <textarea id="txt" cols` rows  onClick="this.innerHTML=' empty \
';"></textarea>  </form>
</body>
</html>




(Submitted via bugs.kde.org)


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

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