Bug Tracker

Modify

Ticket #9637 (closed bug: duplicate)

Opened 2 years ago

Last modified 23 months ago

$('[data-remote]').live doesn't work in Opera if data-remote attribute has no value

Reported by: takandar@… Owned by: takandar@…
Priority: undecided Milestone: 1.next
Component: selector Version: 1.6.1
Keywords: Cc:
Blocking: Blocked by:

Description

Reproduction steps:

Open any page with jQuery in any version of Opera.

Type in console:

document.body.innerHTML = "<span data-remote='true'>first</span><span data-remote>second</span>";
$('[data-remote]').click(function() { console.log('bind ' + this.innerHTML) });
$('[data-remote]').live('click', function() { console.log('live ' + this.innerHTML) });
$('span').trigger('click');

You see in console:

bind first
live first
bind second

You should see in console:

bind first
live first
bind second
live second

Change History

comment:1 Changed 2 years ago by rwaldron

  • Owner set to takandar@…
  • Status changed from new to pending
  • Component changed from unfiled to selector

Thanks for taking the time to contribute to the jQuery project! Please provide a reduced jsFiddle test case to help us assess your ticket!

Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, I've created this boilerplate:  http://jsfiddle.net/rwaldron/da3nM/ Open the link and click to "Fork" in the top menu.

comment:2 Changed 2 years ago by anonymous

Thank you for answer. Reduced jsFiddle test case:  http://jsfiddle.net/morr/uVfRd/

comment:3 Changed 2 years ago by morr <takandar@…>

I added info and description  http://jsfiddle.net/morr/uVfRd/6/

comment:4 Changed 23 months ago by trac-o-bot

  • Status changed from pending to closed
  • Resolution set to invalid

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

comment:5 Changed 23 months ago by morr <takandar@…>

hmmm i added jsFiddle test case and this bug wasn't fixed i suppose you should reopen this ticket

comment:6 Changed 23 months ago by ajpiano

  • Status changed from closed to reopened
  • Resolution invalid deleted

comment:7 Changed 23 months ago by john

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

comment:8 Changed 23 months ago by john

Duplicate of #5637.

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.