Skip to main content

Bug Tracker

Side navigation

#4750 closed bug (worksforme)

Opened June 11, 2009 08:54PM UTC

Closed October 21, 2010 08:34PM UTC

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:
Description

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

Not working !?!?

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

<html>

<head>

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

</body>

</html>

Attachments (0)
Change History (1)

Changed October 21, 2010 08:34PM UTC by addyosmani comment:1

keywords: → removal selector
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.