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

List:       konq-bugs
Subject:    [Bug 255207] New: document.getElementById(id).innerHTML strips
From:       Daniel Mach <daniel.mach () gmail ! com>
Date:       2010-10-25 11:53:23
Message-ID: bug-255207-5021 () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=255207

           Summary: document.getElementById(id).innerHTML strips
                    whitespaces from the end of the text
           Product: konqueror
           Version: unspecified
          Platform: Fedora RPMs
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: kjs
        AssignedTo: konq-bugs@kde.org
        ReportedBy: daniel.mach@gmail.com


Version:           unspecified (using KDE 4.5.2) 
OS:                Linux

innerHTML += "foo\n";
doesn't add '\n' to the element html
see reproducer for details

In Firefox and Arora it works as expected.



Reproducible: Always

Steps to Reproduce:
<html>
<body>
<pre id="log">
line1
</pre>

<script language="javascript">
  log = document.getElementById("log")
  log.innerHTML += "line2\n";
  log.innerHTML += "line3";
  log.innerHTML += "\n";
  log.innerHTML += "line4\n";
</script>

</body>
</html>


Actual Results:  
line1
line2line3line4

Expected Results:  
line1
line2
line3
line4

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Konq-bugs mailing list
Konq-bugs@mail.kde.org
https://mail.kde.org/mailman/listinfo/konq-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

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