Bug Tracker

Modify

Ticket #10141 (closed bug: invalid)

Opened 21 months ago

Last modified 21 months ago

Webkit browsers empty function behavior

Reported by: yeikos@… Owned by: yeikos@…
Priority: low Milestone: None
Component: misc Version: 1.6.2
Keywords: Cc: dmethvin
Blocking: Blocked by:

Description

Line 5663 (manipulation.js)

Bugfix in Webkit browsers when use jQuery empty function (demo only valid for Webkit  http://goo.gl/zow5W)

 https://github.com/jquery/jquery/pull/475

Change History

comment:1 Changed 21 months ago by rwaldron

  • Owner set to yeikos@…
  • Priority changed from undecided to low
  • Status changed from new to pending

Thanks for filing, but you still haven't made it clear what the bug is

comment:2 Changed 21 months ago by yeikos <yeikos@…>

Maybe doesn't be a bug, but a differ behavior.

If you use html function for change a container and now this container has one script tag (<script></script>) and a form with a textbox (<form><input type="text"></form>), when you focus the textbox and press enter for submit form and change again the container, the scroll will go top, if you press button submit this won't happen.

This only happen if your browser uses Webkit (ex: Chrome).

A proof of concept:  http://jsfiddle.net/yeikos/SgNKV/

Sorry for my bad writting (I'm spanish)

comment:3 Changed 21 months ago by rwaldron

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

This seems like an edge case at best.

comment:4 Changed 21 months ago by rwaldron

  • Component changed from unfiled to misc

comment:5 Changed 21 months ago by yeikos <yeikos@…>

comment:6 Changed 21 months ago by rwaldron

  • Status changed from closed to reopened
  • Resolution patchwelcome deleted

comment:7 Changed 21 months ago by rwaldron

  • Cc dmethvin added

Sorry, that was a misfiling. I'm going to defer to @dmethvin for a verdict here

comment:8 Changed 21 months ago by dmethvin

  • Status changed from reopened to pending

As asked in the commit, why does the .innerHTML require a try/catch?

comment:9 Changed 21 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!

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.