FIX: style.clip Attribute Does Not Work for the Select Element (269660)



The information in this article applies to:

  • Microsoft Internet Explorer (Programming) 4.01 SP1
  • Microsoft Internet Explorer (Programming) 4.01 SP2

This article was previously published under Q269660

SYMPTOMS

When you use the style.clip attribute to clip a SELECT element, it does not clip the element.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This bug was corrected in Internet Explorer 5.

MORE INFORMATION

Steps to Reproduce Behavior

The following code is a generic example of how to clip a SELECT element:
<HTML>
<BODY>
<script language=javascript>

 function clipselect() {
		select1.style.clip = "rect(6 119 17 2)";
 }
 
</script>

<SELECT style="position:absolute;top:17px;left:75px" id=select1 name=select1>
<OPTION>www.microsoft.com</OPTION>
<OPTION>www.microsoft.com/scripting</OPTION>
</SELECT>
<INPUT type="button" value="Clip -->" id=button1 name=button1 onclick=clipselect();>

</BODY>
</HTML>
				

REFERENCES

For more information about the clip attribute, see the following Web site: For more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:

Modification Type:MajorLast Reviewed:5/11/2006
Keywords:kbBug kbDHTML kbfix kbie500fix KB269660