Bug Tracker

Opened 14 years ago

Closed 12 years ago

#4750 closed bug (worksforme)

selector bug

Reported by: luka8088 Owned by: john
Priority: low Milestone: 1.4
Component: selector Version: 1.3.2
Keywords: removal selector Cc:
Blocked by: Blocking:


$('.abc ~ *').remove();

Not working !?!?

In this example, nothing is removed (tested with firefox 3.0):



<title> test </title>

<script type="text/javascript" src="/include/js/jquery.js"></script>

<script type="text/javascript"> /* <![CDATA[ */

$(document).ready(function () {

$('.abc ~ *').remove();


/* ]]> */ </script>

</head> <body>

<span class="abc"> a </span> <span> b </span> <span> c </span>



Change History (1)

comment:1 Changed 12 years ago by addyosmani

Keywords: removal selector added
Priority: majorlow
Resolution: worksforme
Status: newclosed

Testing this with jQuery 1.4.3 Live Test Case it appears to be consistently removing the expected values across all browsers. Please feel free to re-open this ticket if you have additional test cases you can provide. Closing as it works for me for now.

Note: See TracTickets for help on using tickets.