#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
Owner: | set to wfsiew |
---|---|
Status: | new → pending |
comment:2 Changed 7 years ago by
Status: | pending → new |
---|
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
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
Status: | new → open |
---|
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/
comment:5 Changed 7 years ago by
Yes, but you have to hover the input first, hover the form initially will have no effect.
comment:6 Changed 7 years ago by
Right, figured that out as well. One more update: http://jsbin.com/acuraz/4/
comment:7 Changed 7 years ago by
Component: | ui.core → ui.tooltip |
---|
comment:8 Changed 7 years ago by
Resolution: | → fixed |
---|---|
Status: | open → closed |
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
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
Milestone: | 1.10.0 → 1.9.2 |
---|
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.