BUG: Incorrect srcElement Returned When You Click a List Inside a Table (263203)



The information in this article applies to:

  • Microsoft Internet Explorer (Programming) 5
  • Microsoft Internet Explorer (Programming) 5.01
  • Microsoft Internet Explorer (Programming) 5.5

This article was previously published under Q263203

SYMPTOMS

If a list (<UL> or <OL>) is used in a table and the list is in a row other than the first row of the table, the srcElement of the onClick event may not indicate the appropriate tag. This occurs if you click on the bullet item instead of the text.

RESOLUTION

There is no known resolution to this issue at this time.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Paste the following code in an HTML file and run the file.
    <HTML>
    <BODY onclick="alert(window.event.srcElement.tagName)">
    <Table border=1>
    	<tr>
    		<td>
    			<ll>
    				<li>List Item 1
    				<li>List Item 2
    			</ll>
    		</td>
    	</tr>
    	<tr>
    		<td>
    			<ll>
    				<li>List Item 1
    				<li>List Item 2
    			</ll>
    		</td>
    	</tr>
    </table>
    </BODY>
    </HTML>
    					
  2. Click on the bullet for one of the list items in the first table cell. An alert with "LI" will appear.
  3. Click on the bullet for one of the list items in the second table cell. An alert with "TD" will appear.

REFERENCES

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 kbnofix KB263203