[Webkit-unassigned] [Bug 28176] New: "document.documentElement.removeAttribute("style"); " occasionally silently fails.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 11 07:23:23 PDT 2009


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

           Summary: "document.documentElement.removeAttribute("style");"
                    occasionally silently fails.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh Intel
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptGlue
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: vincent at shoopz.com


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 = "none";
-----------------------------
to delay the display of the page.

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

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 = "";
-----------------------------
makes it work, both with and without the Error Console enabled.

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



More information about the webkit-unassigned mailing list