Bug Tracker

Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#8718 closed bug (invalid)

replace is not a function

Reported by: aday22@… Owned by: aday22@…
Priority: undecided Milestone: 1.next
Component: selector Version: 1.5.1
Keywords: Cc:
Blocked by: Blocking:


expr.replace is not a function - jquery-1.5.1.js: Line 4514

Firebug is reporting this issue in Firefox 4.0 with jQuery 1.5.1 and jQuery UI 1.8.11 on a jQuery dropdown menu.

Change History (8)

comment:1 Changed 6 years ago by timmywil

Thank you for taking the time to submit a bug report to the jQuery project! Please provide a reduced test case on http://jsfiddle.net so that we can investigate your issue.

Last edited 6 years ago by timmywil (previous) (diff)

comment:2 Changed 6 years ago by Rick Waldron

Component: unfiledselector
Owner: set to aday22@…
Status: newpending

Does this issue still exist when you use jQuery 1.5.2pre?

comment:3 Changed 6 years ago by anonymous

I'm still getting the error in 1.5.2rc:

expr.replace is not a function - jquery-1.5.2rc1.js - Line 4541

I haven't been able to replicate a test case, but I'll try to put something together.


comment:4 Changed 6 years ago by timmywil

it would also help if we knew which dropdown menu you are referring to. If you mean the ui selectmenu, that is still in its alpha stages and has not been officially released. It is possible this is a bug in that widget.

comment:5 Changed 6 years ago by anonymous

I still haven't been able to come up with a test case or figure out what's triggering the error. I tested previous versions of jQuery, and the same problem occurred in 1.5.2rc, 1.5.1, 1.5, and 1.4.4. It worked without any problems in 1.4.3.

Here's the HTML for the drop-down, which probably doesn't help any but I figured it's worth a shot. I'll keep digging.

<ul class="sf_admin_actions">
    <li class="sf_admin_batch_actions_choice">
        <select name="batch_action" style="display: none;">
            <option value="">Choose an action</option>
            <option value="batchConfirm">Confirm</option>                
        <a aria-expanded="false" aria-owns="_menu_966" aria-haspopup="true" href="#" role="button" id="_button_966" class="ui-selectmenu ui-widget ui-state-default ui-selectmenu-dropdown ui-corner-all" tabindex="0" style="width: 200px;">
        <span class="ui-selectmenu-status">Choose an action</span><span class="ui-selectmenu-icon ui-icon ui-icon-triangle-1-s"></span></a>
        <!--<input type="submit" value="go" class="fg-button ui-state-default ui-corner-right"/>-->
        <input type="submit" class="ui-button ui-state-default ui-corner-all" value="go">
        <!--<button type="submit" class="fg-button ui-state-default fg-button-icon-right ui-corner-all">
        <span class="ui-icon ui-icon-check"></span>
        go  </button>-->

The error happens when I hover over the drop-down elements.

comment:6 Changed 6 years ago by addyosmani

Could you please provide us with more information? Unfortunately just seeing the HTML doesn't give us a whole lot to go on. We'd need to be able to see what version of the dropdown/selectmenu code you're using, whether there's additional logic on the page you're executing that may be resulting in the issue etc. Ideally, this could all be solved by posting up a test case on jsFiddle as originally requested - could you do that?

comment:7 Changed 6 years ago by addyosmani

Resolution: invalid
Status: pendingclosed

It would appear that you have since updated the original ticket to specifically mention you're using jQuery UI - the version you reference does not have a known conflict with jQuery 1.5.1 (or edge). As the components this refers to are not directly related to core, we'll be closing this ticket. For further assistance please resubmit your ticket to the jQuery UI bug tracker or if you would prefer to get assistance with debugging your project, please ask for help in the official jQuery forums.

comment:8 Changed 6 years ago by anonymous

it is ok in 1.6

Note: See TracTickets for help on using tickets.