Bug Tracker

Opened 9 years ago

Last modified 8 years ago

#9106 closed bug

$('html').show(); does not work in firefox 3.6 — at Version 6

Reported by: kharlamov@… Owned by: Rick Waldron
Priority: low Milestone: 1.7
Component: effects Version: 1.6
Keywords: Cc:
Blocked by: Blocking:

Description (last modified by Rick Waldron)

With jquery 1.6 on firefox 3.6.17, .show(); does not seem to work on the html tag.

I have made a quick demo here:

demo: http://jsfiddle.net/UHEEm/

html:

<html>
    <body>
        test
    </body>
</html>

css:

html {
    display: none;
}

jquery:

$('html').show();

//$('html').css('display', 'block'); //this works though.



Change History (6)

comment:1 Changed 9 years ago by vyrak.bunleang@…

Seems like this is an issue if Firefox 4.0 as well

comment:2 Changed 9 years ago by anonymous

The body tag looks like the only other tag that is affected by this bug.

comment:3 Changed 9 years ago by Rick Waldron

Component: unfiledeffects
Priority: undecidedblocker
Status: newopen

IMHO, like #8099 and this ticket, modifying the display property directly instead of via a class is flat out wrong. I'm going to recommend, for simplicity sake, that we just pre-define html & body in the in the elementdisplay object, something like this:

https://github.com/rwldrn/jquery/commit/435536606f8f5f341f6d923ea8c5a2084fbc41c7

While I don't think this is right, nor do I really think we should be making iframes to account for what amounts to BAD markup and styles, I guess people are doing it, so we need to address the issue.

Nearly a duplicate of #8099

comment:4 Changed 9 years ago by Rick Waldron

Owner: set to Rick Waldron
Status: openassigned

comment:5 Changed 9 years ago by john

Keywords: 1.7-discuss added

Nominating ticket for 1.7 discussion.

comment:6 Changed 9 years ago by Rick Waldron

Description: modified (diff)

+0, Not fond of this issue, but it might be a bug

Note: See TracTickets for help on using tickets.