#178 closed bug (fixed)
IE fails with #element/* expressions
Reported by: | 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>
Note: See
TracTickets for help on using
tickets.
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