Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8372901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:33:02+00:00 2026-06-09T14:33:02+00:00

I went to check if the recently released jQuery 1.8 (stable) would be compatible

  • 0

I went to check if the recently released jQuery 1.8 (stable) would be compatible with my current project in development, and to my surprise this is the first thing I saw:

enter image description here

It is a surprise to me as I had already upgraded to jQuery UI 1.8.22, which according to its release post, is compatible with jQuery 1.8.

The callback functions are called according, but the buttons have no textNodes as one can see in a DOM inspector:

enter image description here

The solutions which I’ve found so far are either:

  1. Downgrade back to jQuery 1.7.2 (I would like to use the latest jQuery version in my page though)
  2. Upgrade to jQuery UI 1.9.0pre (it’s not stable)
  3. Use an open handler or manually edit the HTML of the dialog to include my desired text. Seems like a lot of unneeded hassle for a bug in their source.

Am I missing something or is this an actual bug?

Here’s the fiddle which I used for the demo:

jsFiddle

And the code for future reference:

HTML:

<div id="foo" title="Dialog title">Dialog text</div>

JS:

$('#foo').dialog({
    buttons: {
        Yes: function() { $(this).dialog('close'); },
        No: function() { $(this).dialog('close'); }
    }
});
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T14:33:03+00:00Added an answer on June 9, 2026 at 2:33 pm

    EDIT:

    Here’s the BugTracker ticket.

    A much simpler solution is to use this snippet after including the jQuery library:

    if ( $.attrFn ) { $.attrFn.text = true; }
    

    jsFiddle

    This issue should be fixed when jQuery UI 1.8.23 is released. Credits to scott.gonzalez from the BugTracker ticket page.

    EDIT: This has been fixed in UI 1.8.23.


    My old solution:
    (use it if you have problems with the one above)

    I’ve made a temporary fix for this issue (until a new stable version of either UI or core is release).

    There’s a bug with jQuery 1.8 interacting with jQuery UI 1.8.22 which stores the text in the parent button‘s text attribute instead of creating a textNode inside the span.ui-button-text:

    enter image description here

    Use this snippet after initializing jQuery UI dialogs or any other interface which has this UI button bug:

    //iterate through all UI button text spans in the document
    $('.ui-button-text').each(function() {
        var $this = $(this);
        if ($this.text() == '') //if it has no text (bugged)
            $this.text($this.parent().attr('text')); //sets the text which was passed
    });
    

    jsFiddle

    The script checks if the UI button has no text before doing anything, so it’s harmless to keep even if you forget it there when upgrading to future non-bugged versions of core/UI.

    If you have a better solution or information on this bug I’ll glad accept it. =]

    Note that you can downgrade to jQuery 1.7.2 or use a pre-release of UI 1.9.0 as mentioned in the question if you can’t wait for a stable release and still want to use the latest stable versions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I went through this similar question at https://stackoverflow.com/a/7410228/880040 and the 6th thing to check,
I went through this whole procedure http://www.hanselman.com/blog/WorkingWithSSLAtDevelopmentTimeIsEasierWithIISExpress.aspx a couple weeks ago and got https
I went as far as searching C sources, but I can't find this function,
I went to connect to my website via firefox earlier this afternoon and I
We recently went into private beta on our flagship product and had a small
I recently upgraded my project from Xcode 4.0.1 to Xcode 4.2 - and everything
I recently jumped back into programming and decided to learn Java as my first
We are binding global ajax handlers to check if the browser went offline :
this is the first time I'm trying to use html5 to display a video.
How can I check if a query went wrong instead of showing errors to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.