Skip to main content

Bug Tracker

Side navigation

#4634 closed bug (invalid)

Opened May 07, 2009 08:43PM UTC

Closed May 09, 2009 01:53AM UTC

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 :

Attachments (0)
Change History (3)

Changed May 08, 2009 12:22AM UTC by dmethvin comment:1

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

http://docs.jquery.com/Downloading_jQuery

Changed May 08, 2009 12:50AM UTC by Memnok comment:2

Replying to [comment:1 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

Changed May 09, 2009 01:53AM UTC by dmethvin comment:3

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.