Skip to main content

Bug Tracker

Side navigation

#3884 closed bug (fixed)

Opened January 16, 2009 12:30AM UTC

Closed January 21, 2009 10:36PM UTC

[name!=val] failing

Reported by: john Owned by: john
Priority: major Milestone: 1.3.1
Component: selector Version: 1.3
Keywords: Cc:
Blocked by: Blocking:
Description

If v1.3 has changed, why the demo on http://docs.jquery.com/Selectors/attributeNotEqual

has the 2nd input not changed to " is not newsletter " (2nd input has

no name attribute).

Output:

name?

name?

is not newsletter

Source code:
=========
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                   "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
 <script src="http://code.jquery.com/jquery-latest.js"></script>

 <script>
 $(document).ready(function(){
   $("input[name!='newsletter']").next().text(" is not newsletter");
 });
 </script>

</head>
<body>
 <div>
   <input type="radio" name="newsletter" value="Hot Fuzz" />
   <span>name?</span>
 </div>
 <div>
   <input type="radio" value="Cold Fusion" />
   <span>name?</span>
 </div>
 <div>
   <input type="radio" name="accept" value="Evil Plans" />
   <span>name?</span>
 </div>
</body>
</html>
=========
Attachments (0)
Change History (4)

Changed January 16, 2009 12:44AM UTC by john comment:1

resolution: → worksforme
status: newclosed

Oops, that's intentional, obviously. Need some sleep.

Changed January 18, 2009 11:38AM UTC by shawphy comment:2

resolution: worksforme
status: closedreopened

It's different between in IE6 and in other.

Changed January 18, 2009 11:41AM UTC by shawphy comment:3

In IE6 ,the output is

name?

is not newsletter

is not newsletter

And in Firefox 3 and Chrome ,the output is

name?

name?

is not newsletter

Changed January 21, 2009 10:36PM UTC by john comment:4

resolution: → fixed
status: reopenedclosed

Fixed in SVN rev [6149].