Bug Tracker

Modify

Ticket #3884 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

[name!=val] failing

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

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>
=========

Change History

comment:1 Changed 5 years ago by john

  • Status changed from new to closed
  • Resolution set to worksforme

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

comment:2 Changed 5 years ago by shawphy

  • Status changed from closed to reopened
  • Resolution worksforme deleted

It's different between in IE6 and in other.

comment:3 Changed 5 years ago by shawphy

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

comment:4 Changed 5 years ago by john

  • Status changed from reopened to closed
  • Resolution set to fixed

Fixed in SVN rev [6149].

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.