Bug Tracker

Modify

Ticket #4301 (closed bug: invalid)

Opened 4 years ago

Last modified 14 months ago

Setting CSS display to inherit breaks in IE7

Reported by: ksheffield Owned by:
Priority: minor Milestone: 1.3.2
Component: core Version: 1.3.2
Keywords: Cc:
Blocking: Blocked by:

Description

$('#notesTextArea').css({ "display": "inherit" });

The above code works in FF but in IE 7 it creates a javascript error : "Could not get the display property. Invalid argument"

Change History

comment:1 Changed 4 years ago by dmethvin

  • Component changed from unfilled to core

 http://reference.sitepoint.com/css/inheritvalue

If IE doesn't support inherit it's up to the developer to either avoid using it totally or work around the situation in IE. jQuery could certainly swallow the error in various ways, but that would lead to further confusion because IE wouldn't actually be using the property you thought you set.

comment:2 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

comment:3 Changed 3 years ago by ryan@…

For what it's worth, .css("display","table-row") and table-cell also does not work in IE7.

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.