<?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>28176</bug_id>
          
          <creation_ts>2009-08-11 07:23:23 -0700</creation_ts>
          <short_desc>&quot;document.documentElement.removeAttribute(&quot;style&quot;);&quot; occasionally silently fails.</short_desc>
          <delta_ts>2022-07-11 16:53:54 -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>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</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="Vincent Bernardi">vincent</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>elvanor</cc>
    
    <cc>kennyluck</cc>
    
    <cc>maurelio.campos</cc>
    
    <cc>mitz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>138954</commentid>
    <comment_count>0</comment_count>
    <who name="Vincent Bernardi">vincent</who>
    <bug_when>2009-08-11 07:23:23 -0700</bug_when>
    <thetext>This bug happens on both releases of Safari 3.2.3 (Windows XP/Intel) and Safari 4.0.2 (Mac OS X 10.5.8/Intel and Windows XP/Intel).

When first loaded my script does
-----------------------------
document.documentElement.style.display = &quot;none&quot;;
-----------------------------
to delay the display of the page.

Later it does 
-----------------------------
document.documentElement.removeAttribute(&quot;style&quot;);
-----------------------------

This makes the page display correctly on IE 7,8 and FF3 but on Safari 3 and 4 the page stays blank as if the instruction had been discarded.
This bug mysteriously disapears if the page is loaded while the Error Console is enabled under Safari 4 (both Win and Mac). In that case the page displays correctly.

Suggested workaround: replacing the above line with 
-----------------------------
document.documentElement.style.display = &quot;&quot;;
-----------------------------
makes it work, both with and without the Error Console enabled.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>544714</commentid>
    <comment_count>1</comment_count>
    <who name="madcampos">maurelio.campos</who>
    <bug_when>2012-01-28 23:42:37 -0800</bug_when>
    <thetext>this bug happens on safari and chrome, tested on windows.
element.removeAttribute(&apos;style&apos;) fails

as a workaround i am setting the attribute style to null, then removing, this seems to make webkit aware of the attribute&apos;s existence.

my browser versions are:
Safari v5.1.2
Chrome v16.0.912.77</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>545319</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-01-30 12:46:16 -0800</bug_when>
    <thetext>Could someone please attach a test case?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>545449</commentid>
    <comment_count>3</comment_count>
      <attachid>124607</attachid>
    <who name="madcampos">maurelio.campos</who>
    <bug_when>2012-01-30 15:07:08 -0800</bug_when>
    <thetext>Created attachment 124607
Test URL (should be working)

This url uses the workarround i proposed in the file interface.js around line 89</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>741797</commentid>
    <comment_count>4</comment_count>
    <who name="Kang-Hao (Kenny) Lu">kennyluck</who>
    <bug_when>2012-10-15 00:10:50 -0700</bug_when>
    <thetext>This is either duplicated by Bug 99295 or a duplicate of it.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>124607</attachid>
            <date>2012-01-30 15:07:08 -0800</date>
            <delta_ts>2012-01-30 15:07:08 -0800</delta_ts>
            <desc>Test URL (should be working)</desc>
            <filename>url.txt</filename>
            <type>text/plain</type>
            <size>35</size>
            <attacher name="madcampos">maurelio.campos</attacher>
            
              <data encoding="base64">aHR0cDovL3dlc2xsZWkuY29tLmJyL2NwLWNoZWNrbGlzdC8=
</data>

          </attachment>
      

    </bug>

</bugzilla>