<?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>79730</bug_id>
          
          <creation_ts>2012-02-27 18:33:40 -0800</creation_ts>
          <short_desc>Dynamically adding content to an element does not remove the :empty styling</short_desc>
          <delta_ts>2012-02-27 19:08:50 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>79734</dup_id>
          
          <bug_file_loc>http://jsfiddle.net/gaby/BSbEw/</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="Gabriele">gpetrioli</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>gpetrioli</cc>
    
    <cc>noel.gordon</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>566237</commentid>
    <comment_count>0</comment_count>
    <who name="Gabriele">gpetrioli</who>
    <bug_when>2012-02-27 18:33:40 -0800</bug_when>
    <thetext>Other browsers tested:
  Add OK or FAIL after other browsers where you have tested this issue:
     Safari 5 / Chrome: FAIL
  Firefox 4.x: OK
     IE 7/8/9: (7/8 FAIL) - (9 OK)

What steps will reproduce the problem?
1.set an :empty CSS rule, for some element , with display:none
2.dynamically set the content of that element with javascript


What is the expected result?
Once content is added dynamically the element should lose the :empty styling

What happens instead?
The element remains display:none


It is similar to https://bugs.webkit.org/show_bug.cgi?id=26570 but for dynamic content..</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>566271</commentid>
    <comment_count>1</comment_count>
    <who name="noel gordon">noel.gordon</who>
    <bug_when>2012-02-27 19:08:50 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 79734 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>