jQuery: The Write Less, Do More JavaScript Library

Ticket #178 (closed bug: fixed)

Opened 2 years ago

Last modified 1 year ago

IE fails with #element/* expressions

Reported by: stephen@… Assigned to: anonymous
Type: bug Priority: major
Milestone: 1.0 Component: core
Version: 1.0 Keywords:
Cc: Needs:

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 "-//W3C//DTD XHTML 1.0 Transitional//EN" "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>

Attachments

Change History

Changed 2 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

Changed 2 years ago by joern

  • status changed from new to closed
  • resolution set to fixed

Fixed in SVN.

Note: See TracTickets for help on using tickets.