Skip to main content

Bug Tracker

Side navigation

#9065 closed bug (wontfix)

Opened May 03, 2011 03:36PM UTC

Closed May 03, 2011 05:13PM UTC

.show() adds "display:block" to <script>

Reported by: Owned by:
Priority: low Milestone:
Component: css Version: 1.5
Keywords: Cc:
Blocked by: Blocking:

Which reveals contents of javascript in FF4, Opera11, Chrome. IE8 doesn't do anything with script unless you hardcode <script style="display:block"> for some reason, then it applies "display:block" to output of document.write

Reproduced with versions 1.5, 1.4.2, 1.3.2

Attachments (0)
Change History (3)

Changed May 03, 2011 03:44PM UTC by comment:1

It appears that listed browsers display any hidden element with adding "display:block", e.g. page title or style blocks.

Changed May 03, 2011 04:22PM UTC by rwaldron comment:2

component: unfiledcss
owner: →
status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a reduced jsFiddle test case to help us assess your ticket!

Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, I've created this boilerplate: Open the link and click to "Fork" in the top menu.

Changed May 03, 2011 05:13PM UTC by timmywil comment:3

priority: undecidedlow
resolution: → wontfix
status: pendingclosed

That is the expected result. I recommend never calling show on a script tag.