<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>15022</bug_id>
          
          <creation_ts>2007-08-20 10:26:00 -0700</creation_ts>
          <short_desc>Cell width can&apos;t be changed when the table is using table-layout:fixed</short_desc>
          <delta_ts>2007-08-27 14:58:59 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tables</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="James">jimmyps.ong</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mitz</cc>
    
    <cc>tom</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1901</commentid>
    <comment_count>0</comment_count>
    <who name="James">jimmyps.ong</who>
    <bug_when>2007-08-20 10:26:00 -0700</bug_when>
    <thetext>Try to click the button of the following simple html page. The script should simply change the first cell&apos;s width to 50px (it worked properly in IE/Gecko/Opera). But it didn&apos;t work in Safari.

&lt;html&gt;
&lt;head&gt;
    &lt;title&gt;Untitled Page&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;script type=&quot;text/javascript&quot;&gt;
    
        function SetWidth()
        {
            var cell = document.getElementById(&quot;a1&quot;);
            cell.style.width = &quot;50px&quot;;
            cell.width = &quot;50&quot;;
            
            alert(&quot;Cell 1&apos;s width should be 50px by now.. but it isn&apos;t :(&quot;);
        }
    &lt;/script&gt;
    &lt;table id=&quot;tb1&quot; border=&quot;1&quot; style=&quot;width: 500px; table-layout: fixed&quot;&gt;
        &lt;tr&gt;
            &lt;td id=&quot;a1&quot; style=&quot;width: 100px&quot;&gt;
                Cell 1&lt;/td&gt;
            &lt;td id=&quot;a2&quot; style=&quot;width: 100px&quot;&gt;
                Cell 2&lt;/td&gt;
            &lt;td id=&quot;a3&quot; style=&quot;width: 300px&quot;&gt;
                Cell 3&lt;/td&gt;
        &lt;/tr&gt;
    &lt;/table&gt;
    &lt;button onclick=&quot;SetWidth()&quot;&gt;Change Cell 1 width to 50px&lt;/button&gt;
&lt;/body&gt;
&lt;/html&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1896</commentid>
    <comment_count>1</comment_count>
      <attachid>16032</attachid>
    <who name="James">jimmyps.ong</who>
    <bug_when>2007-08-20 10:28:46 -0700</bug_when>
    <thetext>Created attachment 16032
Testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1361</commentid>
    <comment_count>2</comment_count>
    <who name="Tom Brown">tom</who>
    <bug_when>2007-08-27 14:47:06 -0700</bug_when>
    <thetext>This appears to have been fixed sometime between nightlies r25168 and r25239</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1362</commentid>
    <comment_count>3</comment_count>
    <who name="">mitz</who>
    <bug_when>2007-08-27 14:58:59 -0700</bug_when>
    <thetext>Fixed by Beth in &lt;http://trac.webkit.org/projects/webkit/changeset/25224&gt;.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>16032</attachid>
            <date>2007-08-20 10:28:46 -0700</date>
            <delta_ts>2007-08-20 10:28:46 -0700</delta_ts>
            <desc>Testcase</desc>
            <filename>HTMLPage2.htm</filename>
            <type>text/html</type>
            <size>830</size>
            <attacher name="James">jimmyps.ong</attacher>
            
              <data encoding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Hk+DQo8L2h0bWw+DQo=
</data>

          </attachment>
      

    </bug>

</bugzilla>