Skip to content

Tooltip: on close and destroy only set title if empty or undefined. Fixed #8925 - Changes to title attribute are reverted on close#1143

Closed
robotdan wants to merge 2 commits into
jquery:masterfrom
robotdan:8925-tooltip-title
Closed

Tooltip: on close and destroy only set title if empty or undefined. Fixed #8925 - Changes to title attribute are reverted on close#1143
robotdan wants to merge 2 commits into
jquery:masterfrom
robotdan:8925-tooltip-title

Conversation

@robotdan
Copy link
Copy Markdown
Contributor

@robotdan robotdan commented Dec 2, 2013

Ticket #8925 states that changes to the title attribute while the tooltip is open are lost on tooltip close.

In the close and destroy functions, the title attribute is always written if a value was stored in the element on open. It is possible the attribute has changed and restoring the initial value may overwrite the current value.

If the value is empty or undefined as set in open, do not set the title attribute.

This fix has the limitation that if the user removed the title attribute or set the value to an empty string the original title value would be restored on close and destroy. Test cases 3 and 4 demonstrate this limitation.

…ed #8925 - Changes to title attribute are reverted on close

Ticket #8925 states that changes to the title attribute while the
tooltip is open are lost on tooltip close.

In the close and destroy functions, the title attribute is always
written if a value was stored in the element on open. It is possible
the attribute has changed and restoring the initial value may overwrite
the current value.

If the value is empty or undefined as set in open, do not set the title
attribute.

This fix has the limitation that if the user removed the title
attribute or set the value to an empty string the original title value
would be restored on close and destroy. Test cases 3 and 4 demonstrate
this limitation.
@scottgonzalez
Copy link
Copy Markdown
Member

Your git config still has incorrect information in it. The email address doesn't match the one you used to sign the CLA and your name isn't set properly. This needs to be fixed before we can review the change. Let us know if you need help getting that fixed.

…ine. Fixed #8925 - Changes to title attribute are reverted on close"

This reverts commit 951d1fc.
@robotdan robotdan closed this Dec 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants