Microsoft KB Archive/181074

= PRB: No Filter Applied to , If Attributes Unspecified =

Article ID: 181074

Article Last Modified on 5/11/2006

-

APPLIES TO


 * Microsoft Internet Explorer 4.0 128-Bit Edition

-



This article was previously published under Q181074



SYMPTOMS
When a Visual Filter such as an Alpha or Blur filter is defined for a  or  element, the filter is not applied and no visual effect is displayed.

Alternatively, when a filter defined for a  or  element is scripted, the following scripting error is generated

'elementID.filters.item(...)' is not an object

where elementID is the ID of the element on which the filter is defined.



CAUSE
Visual filters can be applied to DIV and SPAN elements only if they have the following style attributes explicitly defined: width, height, or absolute position.



RESOLUTION
When using a  or a , be sure to specify at least one of the three required cascading style sheets (CSS) attributes:


 * height,
 * width
 * position (absolute or relative)

The following example illustrates this, with the required absolute position attribute defined:  Item #1  <LI>Bullet #1 <LI>Bullet #2 </UL> </DIV>

<div class="status_section">

STATUS
This behavior is by design.

<div class="moreinformation_section">

MORE INFORMATION
Visual filters can be applied only to HTML elements that are controls. A control element defines a rectangular space within a browser window when the browser renders the Web document. Controls cannot be windowed, such as an IFRAME. Here are the valid HTML controls:


 * BODY
 * BUTTON
 * DIV (with a defined height, width, or absolute positioning)
 * IMG
 * INPUT
 * MARQUEE
 * SPAN (with a defined height, width, or absolute positioning)
 * TABLE
 * TD
 * TEXTAREA
 * TFOOT
 * TH
 * THEAD
 * TR

<div class="references_section">