The background shorthand property does not return an empty string when you view a webpage in Internet Explorer 9

Symptoms

You have a webpage in which you have specified the background-image, background-position, background-attachment, and background-repeat sub-properties. In this case, when you use Windows Internet Explorer 9 to browse the webpage, you notice that the value of the background shorthand property (style.background) reflects these four sub-properties instead of returning an empty string. 

Notes
  • This issue occurs in Quirks mode, in Strict mode, and in Internet Explorer 8 document mode.
  • The returned background shorthand property value is valid. This issue only affects code that depends on the presence of a non-empty style.background value to detect whether all background sub-properties are set.

Cause

This issue occurs when all background sub-properties are set except the background-color sub-property.

Resolution

Security update information

To resolve this problem, install the most recent cumulative security update for Windows Internet Explorer. To do this, visit the following Microsoft website:
For more technical information about the most recent cumulative security update for Windows Internet Explorer, visit the following Microsoft website:
Note This update was first included in security update 2530548 (MS11-050). For more information, click the following article number to view the article in the Microsoft Knowledge Base:
2530548 MS11-050 Cumulative security update for Internet Explorer: June 14, 2011

More Information

For more information, visit the following Microsoft website:
プロパティ

文書番号:2565076 - 最終更新日: 2011/06/22 - リビジョン: 1

フィードバック