Bug Tracker

Modify

Ticket #9065 (closed bug: wontfix)

Opened 2 years ago

Last modified 2 years ago

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

Reported by: maximgun@… Owned by: maximgun@…
Priority: low Milestone: 1.next
Component: css Version: 1.5
Keywords: Cc:
Blocking: Blocked by:

Description

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

Change History

comment:1 Changed 2 years ago by maximgun@…

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

comment:2 Changed 2 years ago by rwaldron

  • Owner set to maximgun@…
  • Status changed from new to pending
  • Component changed from unfiled to css

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:  http://jsfiddle.net/rwaldron/da3nM/ Open the link and click to "Fork" in the top menu.

comment:3 Changed 2 years ago by timmywil

  • Priority changed from undecided to low
  • Status changed from pending to closed
  • Resolution set to wontfix

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.