<?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>13103</bug_id>
          
          <creation_ts>2007-03-17 16:31:24 -0700</creation_ts>
          <short_desc>REGRESSION (r15069): getPropertyValue() returns null when element has display: none (affects Technorati.com)</short_desc>
          <delta_ts>2007-03-29 01:58:34 -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>DOM</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>Mac (PowerPC)</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://technorati.com/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction, InRadar, Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Stef Pause">stef.pause</reporter>
          <assigned_to name="Dave Hyatt">hyatt</assigned_to>
          <cc>ap</cc>
    
    <cc>dev+webkit</cc>
    
    <cc>hyatt</cc>
    
    <cc>mepard</cc>
    
    <cc>mitz</cc>
    
    <cc>mrowe</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>18457</commentid>
    <comment_count>0</comment_count>
    <who name="Stef Pause">stef.pause</who>
    <bug_when>2007-03-17 16:31:24 -0700</bug_when>
    <thetext>Go to Technorati.com and click the &quot;Sign In&quot; link at the top-right.  This onclick JavaScript should cause the div id=&quot;signin&quot; to change its style (via a slide effect) to &quot;display: block;&quot; which it does correctly in Safari v2.0.4, Firefox, Camino, etc.  However, in the latest Webkit nightly it slides down then immediately changes back to &quot;display: none;&quot;.  This obviously makes it somewhat difficult to sign in ;)

The relevant JavaScript is:
onclick=&quot;if(document.all) $(&apos;select&apos;).hide();if($e(&apos;signin&apos;).style.display==&apos;block&apos;) {$(&apos;#signin&apos;).slideUp(&apos;fast&apos;); } else { $(&apos;#signin&apos;).slideDown(&apos;fast&apos;);$e(&apos;username&apos;).focus()};return false&quot;

I&apos;m not entirely sure if it&apos;s a Javascript bug or a DOM bug, I suspect the former, so I&apos;ve filed it under &quot;New Bugs&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18306</commentid>
    <comment_count>1</comment_count>
      <attachid>13701</attachid>
    <who name="Matt Lilek">dev+webkit</who>
    <bug_when>2007-03-18 22:20:36 -0700</bug_when>
    <thetext>Created attachment 13701
Reduction

The heart of this bug is that when an element has display: none, getPropertyValue() returns null instead of &apos;none&apos; like Firefox/Opera.

This works in Safari 2.0.4 because jQuery (Technorati&apos;s JS framework of choice) checks if the getComputedStye() returns null, which Safari 2.0.4 does when an element has display: none.  In that case they then check if they&apos;re looking for the display property and return &apos;none&apos;.

The reason this disappears in ToT after the animation is because we don&apos;t return &apos;none&apos;, jQuery&apos;s animation gizmo never gets sets the display as block permanently when it&apos;s finished, presuming we&apos;re handling that ourselves (ie: we want it to be display: inline) and removes the temporary display: block it added during animation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18280</commentid>
    <comment_count>2</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2007-03-19 11:51:34 -0700</bug_when>
    <thetext>&lt;rdar://problem/5072345&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17247</commentid>
    <comment_count>3</comment_count>
    <who name="">mitz</who>
    <bug_when>2007-03-26 12:55:11 -0700</bug_when>
    <thetext>*** Bug 13193 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17225</commentid>
    <comment_count>4</comment_count>
    <who name="">mitz</who>
    <bug_when>2007-03-26 13:48:47 -0700</bug_when>
    <thetext>Regressed in &lt;http://trac.webkit.org/projects/webkit/changeset/15069&gt;. Safari 2 returns null from getComputedStyle() if the element doesn&apos;t have a renderer. r15069 and later return a CSSStyleDeclaration (which subsequently return null for all properties, see bug 12384).
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16580</commentid>
    <comment_count>5</comment_count>
      <attachid>13859</attachid>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2007-03-29 01:27:07 -0700</bug_when>
    <thetext>Created attachment 13859
Honor display property when we have no renderer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16574</commentid>
    <comment_count>6</comment_count>
    <who name="">mitz</who>
    <bug_when>2007-03-29 01:27:46 -0700</bug_when>
    <thetext>*** Bug 13223 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16573</commentid>
    <comment_count>7</comment_count>
      <attachid>13859</attachid>
    <who name="">mitz</who>
    <bug_when>2007-03-29 01:40:34 -0700</bug_when>
    <thetext>Comment on attachment 13859
Honor display property when we have no renderer.

Needs a change log and a layout test. Also make sure that existing tests pass or are updated as needed. r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16571</commentid>
    <comment_count>8</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2007-03-29 01:58:34 -0700</bug_when>
    <thetext>Fixed in r20570.

</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>13701</attachid>
            <date>2007-03-18 22:20:36 -0700</date>
            <delta_ts>2007-03-18 22:20:36 -0700</delta_ts>
            <desc>Reduction</desc>
            <filename>13103Reduction.html</filename>
            <type>text/html</type>
            <size>645</size>
            <attacher name="Matt Lilek">dev+webkit</attacher>
            
              <data encoding="base64">PGh0bWw+Cgo8aGVhZD4KICAgIDxzY3JpcHQgdHlwZT0idGV4dC9qYXZhc2NyaXB0IiBjaGFyc2V0
PSJ1dGYtOCI+CiAgICAgICAgZnVuY3Rpb24gZG9Gb28oKQogICAgICAgIHsKICAgICAgICAgICAg
dmFyIGVsZW0gPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgiZm9vYmFyIik7CiAgICAgICAgICAg
IHZhciBjdXIgPSBkb2N1bWVudC5kZWZhdWx0Vmlldy5nZXRDb21wdXRlZFN0eWxlKGVsZW0sIG51
bGwpOwoKICAgICAgICAgICAgLy8gRmlyZWZveC9PcGVyYSB3aWxsIHNob3cgImRpc3BsYXk6IG5v
bmUiLCB3aGljaCBpcyB3aGF0IFRvVCBzaG91bGQgZG8sIGJ1dCBkb2Vzbid0LgogICAgICAgICAg
ICAvLyBTYWZhcmkgMiB3aWxsIGNvbXBsYWluIGFib3V0IGN1ciBiZWluZyBudWxsIGFuZCBub3Qg
ZG8gYW55dGhpbmcuCiAgICAgICAgICAgIGFsZXJ0KCJkaXNwbGF5OiAiICsgY3VyLmdldFByb3Bl
cnR5VmFsdWUoImRpc3BsYXkiKSk7CiAgICAgICAgfQogICAgPC9zY3JpcHQ+CjwvaGVhZD4KCjxi
b2R5PgogICAgPGJ1dHRvbiBvbmNsaWNrPSJkb0ZvbygpIj5UZXN0PC9idXR0b24+CiAgICA8ZGl2
IGlkPSJmb29iYXIiIHN0eWxlPSJkaXNwbGF5OiBub25lOyI+SSdtIGEgcmVhbCBib3khPC9kaXY+
CjwvYm9keT4KCjwvaHRtbD4K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>13859</attachid>
            <date>2007-03-29 01:27:07 -0700</date>
            <delta_ts>2007-03-29 01:40:34 -0700</delta_ts>
            <desc>Honor display property when we have no renderer.</desc>
            <filename>patch.txt</filename>
            <type>text/plain</type>
            <size>892</size>
            <attacher name="Dave Hyatt">hyatt</attacher>
            
              <data encoding="base64">SW5kZXg6IGNzcy9DU1NDb21wdXRlZFN0eWxlRGVjbGFyYXRpb24uY3BwCj09PT09PT09PT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SgpOwogICAgIGlmICghc3R5bGUpCg==
</data>
<flag name="review"
          id="5550"
          type_id="1"
          status="+"
          setter="mitz"
    />
          </attachment>
      

    </bug>

</bugzilla>