Skip to main content

Bug Tracker

Side navigation

#4301 closed bug (invalid)

Opened March 05, 2009 04:06PM UTC

Closed June 20, 2010 08:17PM UTC

Last modified March 14, 2012 02:03PM UTC

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:
Blocked by: Blocking:
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"

Attachments (0)
Change History (3)

Changed August 07, 2009 05:12PM UTC by dmethvin comment:1

component: unfilledcore

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.

Changed June 20, 2010 08:17PM UTC by dmethvin comment:2

resolution: → invalid
status: newclosed

Changed October 26, 2010 08:03PM UTC by ryan@ryanmckeel.com comment:3

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