Bug 106386 - [testcase] change colspan of td element using javascript fails
Summary: [testcase] change colspan of td element using javascript fails
Status: RESOLVED UNMAINTAINED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml ecma (show other bugs)
Version: 3.4
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-27 18:56 UTC by Julián Yuste
Modified: 2012-06-18 17:50 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
testcase from above (601 bytes, text/html)
2005-07-12 02:37 UTC, lexual
Details
Screenshot of Konqueror (52.64 KB, image/png)
2006-09-24 14:15 UTC, Julián Yuste
Details
Screenshot of Firefox (39.90 KB, image/png)
2006-09-24 14:19 UTC, Julián Yuste
Details
testcase (553 bytes, text/html)
2006-09-24 17:07 UTC, Philip Rodrigues
Details
Elaborate Testcase (1.51 KB, text/html)
2007-06-29 17:52 UTC, Ralf Wiebicke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Julián Yuste 2005-05-27 18:56:01 UTC
Version:            (using KDE KDE 3.4.0)
Installed from:    Gentoo Packages
Compiler:          gcc versión 3.3.5-20050130 
OS:                Linux

When i try to change the colspan property of a TD element using javascript, it don't work in konqueror but works great in Explorer and Firefox.

Here is a sample of the code i tried:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>PANEL ESTRATÉGICO</title>
</head>
<body>
<table border="0" style="border-collapse:collapse;" id="tabla">
<tr><td>aaaaa</td>
<td id='id12005'>enero</td></tr>
<tr><td>bbbbb</td><td>bbbbbb</td><td>bbbbbb</td><td>bbbbb</td></tr>
</table>
<script type="text/javascript" language="javascript">
        document.getElementById("id12005").colSpan=3;
</script>
</body>
</html>
Comment 1 lexual 2005-07-12 02:37:38 UTC
Created attachment 11769 [details]
testcase from above
Comment 2 Philip Rodrigues 2006-09-02 22:38:26 UTC
I can't see a difference between the firefox and konqueror renderings. What am I meant to be seeing? Can you attach a screenshot?
Comment 3 Julián Yuste 2006-09-24 14:15:42 UTC
Created attachment 17894 [details]
Screenshot of Konqueror
Comment 4 Julián Yuste 2006-09-24 14:19:09 UTC
Created attachment 17895 [details]
Screenshot of Firefox

As you can see, in Firefox the colspan of the TD is changed using javascript
but in konqueror don't work.
I edited the testcase and changed border from 0 to 1 because is most easy to
see the difference.
Sorry if my english is bad, it's not my native language.
Comment 5 Philip Rodrigues 2006-09-24 17:07:48 UTC
Created attachment 17896 [details]
testcase

Ah, ok - I see it now. The testcase has border="0" on the table, so the problem
wasn't visible.
Comment 6 Ralf Wiebicke 2007-06-29 17:52:02 UTC
Created attachment 20994 [details]
Elaborate Testcase

I thought it might be useful to have a more elaborate test case.
It shows that modifying both rowspan and colspan has no effect. It also shows,
that the initial value read from the properties is 0 instead of 1, if
colspan/rowspan is not specified in the html source. And it shows, that
rowspan/colspan=0 does not work as expected (spanning the whole table).
Comment 7 FiNeX 2008-04-06 19:53:36 UTC
On konqueror 4 it is working as expected.
Comment 8 George Goldberg 2008-04-27 08:26:00 UTC
In konqueror 3.5.9, the bug is still there. In svn trunk r801612, the colspan increases correctly, but it is still initially set to 0, which is different to firefox, which sets it initially to 1.
Comment 9 Samuel Brack 2011-01-07 00:07:46 UTC
Assigning this to khtml emca. The bug has nearly disappeared, only the starting value (0 instead on 1) is wrong like described in comment 8.
Comment 10 Myriam Schweingruber 2012-06-18 17:50:05 UTC
Message from the Bugsquad and Konqueror teams:
This bug is closed as outdated, as we do not have the manpower to maintain the KDE3 version anymore.
If you still can reproduce this issue with Konqueror 4.8.4 or later, please open a new report.
Thank you for your understanding.