Bug 109046 - javascript rowspan isn't working well
Summary: javascript rowspan isn't working well
Status: RESOLVED WORKSFORME
Alias: None
Product: konqueror
Classification: Applications
Component: khtml renderer (show other bugs)
Version: unspecified
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-13 22:12 UTC by Walter Rodrigo de Sá Cruz
Modified: 2008-04-20 07:09 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Konq. screenshot. (85.00 KB, image/png)
2008-04-16 19:44 UTC, Christophe Marin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Walter Rodrigo de Sá Cruz 2005-07-13 22:12:53 UTC
Version:            (using KDE KDE 3.3.0)
Installed from:    Debian stable Packages
OS:                Linux

The test page is on: http://waltercruz.com/devel/konqueror/saneamento_teste.php

Look: there's a lin called 'Nova Meta' that calls some javascript that adds table rows to the table.

The table displays well on mozilla-firefox and internet explorer, but thw rowspan attribute fails on konqueror.

konqueror screenshot in http://waltercruz.com/devel/konqueror/konqueror.png
firefox screenshot in http://waltercruz.com/devel/konqueror/firefox.png

I need a td with rowspan = 3 (the field called "Valores")
Comment 1 Walter Rodrigo de Sá Cruz 2005-07-13 22:51:25 UTC
This page that changes colspan by script doesn't works too: http://www.w3schools.com/js/tryit.asp?filename=try_dom_tablecell_colspan
Comment 2 Walter Rodrigo de Sá Cruz 2005-07-15 16:45:55 UTC
I've done more tests:

This code doesn't work

var cell = row.insertCell(0);  
cell.rowSpan = "3"

If I make like this:

row.innerHTML ="<td rowspan=\"3\">"
row.innerHTML +="</td>"

works on konqueror and mozilla, but fails on IE.

The way that works on konqueror, mozilla, IE and opera is that:

var cell = document.createElement("td")
cell.rowSpan = "3"
row.appendChild(cell)

Comment 3 Jakub Stachowski 2007-01-06 13:21:45 UTC
I can confirm this bug (second link, first one is broken) on KDE 3.5.5 from Kubuntu packages.
Comment 4 Walter Rodrigo de Sá Cruz 2007-01-12 13:19:14 UTC
The link was broken. I've re-uploaded the files. Looks like the bug persists.
Comment 5 Christophe Marin 2008-04-16 19:44:02 UTC
Created attachment 24356 [details]
Konq. screenshot.

The bug can't be reproduced in trunk (r.797569)

Adding screenshot. I get the same result on both Konqueror and FF.
Comment 6 James Spahlinger 2008-04-20 07:06:39 UTC
This works correctly for konq 3.5.9 as well. The fields next to Valores are aligned correctly.

Using Gentoo Linux ~x86 (testing in gentoo lingo). KDE 3.5.9 and the majority of packages compiled using gcc 4.3.0.