Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#8742 closed bug (fixed)

Tooltip shows incorrect message in chrome if there is input with name="title" in a form

Reported by: wfsiew Owned by: wfsiew
Priority: minor Milestone: 1.9.2
Component: ui.tooltip Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:

Description

In chrome, if there is a form with input name="title", positioning the mouse cursor outside from the input the tooltip will show [Object HTMLInputElement] in chrome.

The code to produce it in chrome :

<form id="add-form" method="post">

<input type="text" name="title" title="enter title" />

</form>

$('#add-form').tooltip();

Change History (10)

comment:1 Changed 7 years ago by Jörn Zaefferer

Owner: set to wfsiew
Status: newpending

This works fine: http://jsbin.com/acuraz/1/ Tested in Chrome 22. Please provide a failing testpage that shows the problem, or further details on how to reproduce it.

comment:2 Changed 7 years ago by wfsiew

Status: pendingnew

I'm using chrome version Version 22.0.1229.94 m, tested in http://jsbin.com/acuraz/1/, also shows the problem.

comment:3 Changed 7 years ago by wfsiew

Initially when you try move your mouse to the input, you will see the correct tooltip, but when you move out from the input, you will see [object HTMLInputElement]

comment:4 Changed 7 years ago by Jörn Zaefferer

Status: newopen

Alright, now I see it. You have to hover the input, then the form. Modified test page to make it more obvious: http://jsbin.com/acuraz/3/

Last edited 7 years ago by Jörn Zaefferer (previous) (diff)

comment:5 Changed 7 years ago by wfsiew

Yes, but you have to hover the input first, hover the form initially will have no effect.

comment:6 Changed 7 years ago by Jörn Zaefferer

Right, figured that out as well. One more update: http://jsbin.com/acuraz/4/

comment:7 Changed 7 years ago by Scott González

Component: ui.coreui.tooltip

comment:8 Changed 7 years ago by Scott González

Resolution: fixed
Status: openclosed

Tooltip: Use attributes, not properties, when checking for parent tooltips. Fixes #8742 - Tooltip shows incorrect message in chrome if there is input with name='title' in a form.

Changeset: d074efe5289db4f5182a685046e9b9ad6186ac26

comment:9 Changed 7 years ago by Scott González

Tooltip: Use attributes, not properties, when checking for parent tooltips. Fixes #8742 - Tooltip shows incorrect message in chrome if there is input with name='title' in a form. (cherry picked from commit d074efe5289db4f5182a685046e9b9ad6186ac26)

Changeset: 48398bc58c05d82232a0198f968794443414f231

comment:10 Changed 7 years ago by Scott González

Milestone: 1.10.01.9.2
Note: See TracTickets for help on using tickets.