[Webkit-unassigned] [Bug 24902] New: Javascript <TR> style.display=block issue

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 27 15:06:05 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=24902

           Summary: Javascript <TR> style.display=block issue
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: barekm at hotmail.com


Hi, Please see the html source code below.
in google chrome the behavior is strange.
click on the top link Hide then click on show.
the row hidden in the first click is not retored at the good width after
clicking on show !!

<html> 
<body style="font-family:Arial;font-size:8pt"> 
<script language="javascript"> 
function showhide(id)
{
   for (var i = 0; i < document.all[id].length; i++)
   {
                obj = document.all[id][i];
                if (obj.attributes['id'].value == id)
                {
                        if (obj != null)
                        {
                                if(obj.nodeName=='A')
                                        obj.innerHTML = obj.innerHTML=='Hide'?
'Show':'Hide';
                                else
                                        obj.style.display =
obj.style.display=='none'? 'block':'none';
                        }
                }
        }
}
</script> 
<font style="font-size:10pt;"> 
(click on hide then show to see the problem <a id="r2"
href="javascript:showhide('r2');">Hide</a>)</font><hr><br> 
<table border="1" width="1040" style="border-collapse: collapse;
font-size:8pt"> 
<tr> 
<td width="560" colspan="5"align="center">xxxxxxxx</td> 
<td width="140" align="center" colspan="2"><b>ggg</b><br>(ggg)<br><span
style="color:#008000">(ggg)</span></td> 
<td width="140" align="center" colspan="2"><b>ffff</b><br>(fff)<br><span
style="color:#800000">
(fff)</span></td> 
<td width="200"> </td> 
</tr> 
<tr bgcolor="F0F0F0"> 
<td width="40" align="center"><b>xxx</b></td> 
<td width="80" align="center"><b>date</b></td> 
<td width="200" align="center"><b>dd</b></td> 
<td width="180" align="center"><b>dddd</b></td> 
<td width="60" align="center">ffff</td> 
<td width="70" align="center"><b>fff</b></td> 
<td width="70" align="center"><b>fff</b></td> 
<td width="70" align="center"><b>fff</b></td> 
<td width="70" align="center"><b>fff</b></td> 
<td width="200" align="center"><b>fff</b></td> 
</tr> 
<tr id="r2"> 
<td width="40" align="right">xx </td> 
<td width="80"  align="center">23-Mar-2009</td> 
<td width="200" title="CANTOR FITZGERALD">xxxxxxxxxxxxxxxxxxxxxx</td> 
<td width="180" title="NATASHA BOYDEN (3086)">xxxxxxxxxxxxxxxxxxx</td> 
<td width="60" align="center">42% (9)</td> 
<td width="70" align="center" style="color:#008000"><b>5.68%</b></td> 
<td width="70" align="center" style="color:#008000"><b>4.08%</b></td> 
<td width="70"> </td> 
<td width="70"> </td> 
<td> </td> 
</tr> 
</table> 
</body></html>


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list