Skip to main content

Bug Tracker

Side navigation

#14872 closed bug (notabug)

Opened March 09, 2014 10:40AM UTC

Closed March 16, 2014 03:58PM UTC

jQuery UI Tooltip Removing Document Title

Reported by: asafadis@hotmail.com Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:
Description

The issue seems to be with jQuery Core, not jQuery UI. When disabling the uiTooltip on

document
, the document's title (the content of the
title
tag) is removed as well.

Here's a demo using jQuery 1.9.1 + jQuery UI 1.10.4

http://fiddle.jshell.net/CLpWZ/3/show/light/

I also tried older versions of jQuery UI with the same results.

This is not an issue using jQuery 2.x.

Attachments (0)
Change History (5)

Changed March 09, 2014 05:25PM UTC by dmethvin comment:1

Why are you setting a tooltip on document?

Changed March 09, 2014 10:59PM UTC by asafadis comment:2

Replying to [comment:1 dmethvin]:

Why are you setting a tooltip on document?

That's a good question. ''I'' wouldn't, but I was trying to help someone in Stack Overflow who was running into this. Ultimately, I agree... the better solution would be to provide a better, more specific, selector.

However... in both versions of the API page for the Tooltip Widget, the only example of its usage uses document as the selector. This implies that, however senseless, document ''should'' work without issues.

So maybe it's not a bug in jQuery, but just a poor example in the API docs...

Changed March 10, 2014 01:08PM UTC by scottgonzalez comment:3

They're not poor examples, they're examples of delegated tooltips.

I haven't looked into the actual bug yet to determine where the problem is.

Changed March 11, 2014 06:18PM UTC by scottgonzalez comment:4

The underlying issue is that .attr( "title" ) gets/sets document.title. I'd say that's incorrect now that we have .prop(). jQuery UI will need to be updated, but this ticket shouldn't be about tooltips.

Changed March 16, 2014 03:58PM UTC by dmethvin comment:5

resolution: → notabug
status: newclosed

Closing this ticket since it sounds like it would have to be fixed in UI. If there's an existing ticket feel free to post a cross-ref here.