Skip to main content

Bug Tracker

Side navigation

#8718 closed bug (invalid)

Opened March 30, 2011 11:26PM UTC

Closed April 16, 2011 10:57PM UTC

Last modified March 14, 2012 03:59PM UTC

replace is not a function

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

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.

Attachments (0)
Change History (8)

Changed March 30, 2011 11:35PM UTC by timmywil comment:1

_comment0: 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 can investigate your issue.1301528535465381

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.

Changed March 30, 2011 11:49PM UTC by rwaldron comment:2

component: unfiledselector
owner: → aday22@gmail.com
status: newpending

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

Changed March 31, 2011 12:01AM UTC by anonymous comment:3

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.

Thanks!

Changed March 31, 2011 12:20AM UTC by timmywil comment:4

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.

Changed March 31, 2011 03:23PM UTC by anonymous comment:5

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>                
        </select>
        <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>-->
    </li>
</ul>

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

Changed April 07, 2011 02:52PM UTC by addyosmani comment:6

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?

Changed April 16, 2011 10:57PM UTC by addyosmani comment:7

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.

Changed May 16, 2011 09:25AM UTC by anonymous comment:8

it is ok in 1.6