Opened 9 years ago
Closed 9 years ago
#14872 closed bug (notabug)
jQuery UI Tooltip Removing Document Title
Reported by: | 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.
Change History (5)
comment:1 follow-up: 2 Changed 9 years ago by
comment:2 Changed 9 years ago by
Replying to 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...
comment:3 Changed 9 years ago by
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.
comment:4 Changed 9 years ago by
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.
comment:5 Changed 9 years ago by
Resolution: | → notabug |
---|---|
Status: | new → closed |
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.
Why are you setting a tooltip on
document
?