Opened 14 years ago
Closed 14 years ago
#4634 closed bug (invalid)
Problem with this kind of selector $("#myId > div") in Firefox (3.0.10) when using "jquery-1.3.2-vsdoc2.js" file
Reported by: | Memnok | Owned by: | john |
---|---|---|---|
Priority: | minor | Milestone: | 1.3.2 |
Component: | selector | Version: | 1.3.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Problem with this kind of selector $("#myId > div") in Firefox (3.0.10) when using the "jquery-1.3.2-vsdoc2.js" file
I've test the same example in Internet Explorer 8.0 and it works fine.
Note : When I try with the "jquery-1.3.2.js" file instead, it works fine in Firefox 3.0.10.
Example :
<html xmlns="http://www.w3.org/1999/xhtml"> <head>
<title></title>
<script type="text/javascript" src="Scripts/jquery-1.3.2-vsdoc2.js"></script> <script type="text/javascript">
$(document).ready(
function() {
$("#myId > div").each( function(index, domElement) {
alert("id : " + $(domElement).attr("id") + " - class : " + $(domElement).attr("class"));
}
); }
);
</script>
</head> <body>
<div class="classA">
<div class="classB">
<div id="someId" class="classC"> </div>
</div>
</div>
<div id="myId">
<div id="myId1"></div>
</div>
</body> </html>
In firefox 3, the output is :
id: - class : classA id: - class : classB id: someId - class : classC id: myId - class : id: myId1 - class :
In Internet Explorer 8, the output is :
id: myId1 - class :
Change History (3)
comment:1 follow-up: 2 Changed 14 years ago by
comment:2 Changed 14 years ago by
Replying to dmethvin:
Where did you get that file? I don't see it on the official downloads page:
When you click on the Visual Studio link ( you go to this url : http://code.google.com/p/jqueryjs/downloads/detail?name=jquery-1.3.2-vsdoc2.js )
Current Release 1.3.2 (Release Notes) Minified, Uncompressed Documentation: Visual Studio
comment:3 Changed 14 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
OK, at the top of that file is this comment:
/* * This file has been commented to support Visual Studio Intellisense. * You should not use this file at runtime inside the browser--it is only * intended to be used only for design-time IntelliSense. Please use the * standard jQuery library for all production use. * * Comment version: 1.3.2b */
Are you attempting to use this file at runtime inside the browser? It is only intended to be used only for design-time IntelliSense. Please use the standard jQuery library for all production use.
Where did you get that file? I don't see it on the official downloads page:
http://docs.jquery.com/Downloading_jQuery