"Could not get the styleFloat property." error when Internet Explorer 11 is set in Internet Explorer 8 document mode

Applies to: Internet Explorer 11

Symptoms


When you set style["float"]= "center" in Internet Explorer 11 with a document mode of Internet Explorer 8 or an earlier version, you receive an error message that resembles the following:

SCRIPT87: Could not get the styleFloat property. Invalid argument.

Resolution


To fix this issue, install the most recent cumulative security update for Internet Explorer. To do this, go to Microsoft Update. Additionally, see the technical information about the most recent cumulative security update for Internet Explorer.

Note This update was first included in the MS17-006: Description of the security update for Internet Explorer: March 14, 2017.

Status


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

References


Learn about the terminology that Microsoft uses to describe software updates.