Bug Tracker

Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#178 closed bug (fixed)

IE fails with #element/* expressions

Reported by: stephen@… Owned by:
Priority: major Milestone: 1.0
Component: core Version: 1.0
Keywords: Cc:
Blocked by: Blocking:

Description

The following gives an error inside the sibling function using IE - it works fine in Firefox. This happens with revision 249.

<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 TransitionalEN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <script src="jquery.js" type="text/javascript"></script> </head> <body> <div id="versionHistory" class="versionHistory" style="display: none"> </div>

<script type="text/javascript"> alert($("#versionHistory/*").size()); </script> </body> </html>

Change History (2)

comment:1 Changed 14 years ago by joern

Added a test for this; Problem seems to be that jQuery tries to select child nodes without checking if they exist; occurs for me in both IE6 and FF1.5

comment:2 Changed 14 years ago by joern

Resolution: fixed
Status: newclosed

Fixed in SVN.

Note: See TracTickets for help on using tickets.