Skip to main content

Bug Tracker

Side navigation

#10141 closed bug (invalid)

Opened August 25, 2011 11:18PM UTC

Closed September 11, 2011 08:10AM UTC

Webkit browsers empty function behavior

Reported by: yeikos@gmail.com Owned by: yeikos@gmail.com
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

Attachments (0)
Change History (9)

Changed August 25, 2011 11:21PM UTC by rwaldron comment:1

owner: → yeikos@gmail.com
priority: undecidedlow
status: newpending

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

Changed August 26, 2011 12:46AM UTC by yeikos <yeikos@gmail.com> comment:2

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)

Changed August 26, 2011 01:15AM UTC by rwaldron comment:3

resolution: → patchwelcome
status: pendingclosed

This seems like an edge case at best.

Changed August 26, 2011 01:16AM UTC by rwaldron comment:4

component: unfiledmisc

Changed August 26, 2011 01:33AM UTC by yeikos <yeikos@gmail.com> comment:5

Changed August 26, 2011 01:41AM UTC by rwaldron comment:6

resolution: patchwelcome
status: closedreopened

Changed August 26, 2011 01:42AM UTC by rwaldron comment:7

cc: → dmethvin

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

Changed August 27, 2011 08:13PM UTC by dmethvin comment:8

status: reopenedpending

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

Changed September 11, 2011 08:10AM UTC by trac-o-bot comment:9

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!