Bug Tracker

Opened 8 years ago

Closed 8 years ago

#10141 closed bug (invalid)

Webkit browsers empty function behavior

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

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 (9)

comment:1 Changed 8 years ago by Rick Waldron

Owner: set to yeikos@…
Priority: undecidedlow
Status: newpending

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

comment:2 Changed 8 years 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 8 years ago by Rick Waldron

Resolution: patchwelcome
Status: pendingclosed

This seems like an edge case at best.

comment:4 Changed 8 years ago by Rick Waldron

Component: unfiledmisc

comment:5 Changed 8 years ago by yeikos <yeikos@…>

comment:6 Changed 8 years ago by Rick Waldron

Resolution: patchwelcome
Status: closedreopened

comment:7 Changed 8 years ago by Rick Waldron

Cc: dmethvin added

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

comment:8 Changed 8 years ago by dmethvin

Status: reopenedpending

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

comment:9 Changed 8 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

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!

Note: See TracTickets for help on using tickets.