Bug Tracker

Opened 11 years ago

Closed 11 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 Changed 11 years ago by dmethvin

Where did you get that file? I don't see it on the official downloads page:

http://docs.jquery.com/Downloading_jQuery

comment:2 in reply to:  1 Changed 11 years ago by Memnok

Replying to dmethvin:

Where did you get that file? I don't see it on the official downloads page:

http://docs.jquery.com/Downloading_jQuery

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 11 years ago by dmethvin

Resolution: invalid
Status: newclosed

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.

Note: See TracTickets for help on using tickets.