Bug Tracker

Custom Query (13852 matches)


Show under each result:

Results (91 - 93 of 13852)

Ticket Resolution Summary Owner Reporter
#15136 invalid .wrap() clears text selection modular modular

Select some text. Invoke a script that does wrap and unwrap. See your selection changed or cleared.

Can be demonstrated on https://api.jquery.com/wrap/ select some text in the demo and press the button

Why this is a problem: I encountered a script today on a website that uses wrap to create a 'share on twitter' icon (on mousedown).

This behavior is not intended, and a hidden 'feature' that should not be there.

    $.fn.share = function(options) {
        var option = $.extend($.fn.share.defaults,options);
            init : function(shareable) {
                var self = this;
                $.fn.share.defaults.shareable = shareable;
            getContent : function() {
                var current_url = window.location.href
                var selected_text = this.getSelection('string').substring(0,option.maxLength-(current_url.length+option.author_name.length+7));
                var text = encodeURIComponent('\"'+selected_text+'\" '+'[email protected]'+option.author_name+' '+current_url)
                return '<a onclick="window.open(\''+option.shareLink+text+'\',\'_'+option.target+'\',\'location=yes,height=570,width=520,scrollbars=yes,status=yes\')"><i class="fa fa-twitter fa-lg"/></a>';
            getSelection : function(share) {
                    return (share=='string')?String(window.getSelection().getRangeAt(0)).replace(/\s{2,}/g, ' '):window.getSelection().getRangeAt(0);
                else if(document.selection){
                    return (share=='string')?document.selection.createRange().text.replace(/\s{2,}/g, ' '):document.selection.createRange();
            popOver : function() {
                if(this.getSelection('string').length < option.minLength)
                var data = this.getContent();
                var range = this.getSelection();
                var newNode = document.createElement("mark");
                $('.'+option.className).popover({trigger:'manual', placement: option.placement, html: true 
                , content:function(){
                        return data;
            destroy : function(){
    $.fn.share.defaults = {
        shareLink : "http://twitter.com/intent/tweet?text=",
        minLength  : 2,
        maxLength  : 140,
        target     : "blank",
        className  : "share",
        placement  : "top",

#15132 notabug we are using jquery-1.10.2.min.js and happening below problem in IE8 version jdsharp xuyanli

OS system :winxp IIS7.5

after web application running several days,web application happen error.

error follow:

message: 文字列を指定してください。 line: 6 文字: 14631 code: 0 URI: /jquery-1.10.2.min.js

message: 'jQuery' は宣言されていません。 line: 6 文字: 1 code: 0 URI: */jquery-ui-1.10.3.custom.min.js

thank you

#15131 wontfix responseXXX not populated if status is not success octplane

As per https://github.com/jquery/jquery/blame/d41e81980ea89e56c04eb14d8c27f4692b367604/src/ajax.js#L221 It seems that the dataType converters are not called when isSuccess is false

isSuccess = status >= 200 && status < 300
status === 304;

This means that it's not possible to rely on jQuery dataType automatic decoding if it's not a success response. Is there a reason why is this so ? Our "REST" implementation uses HTTP status code to convey the global success/failure of the request, and we also use a payload to describe precisely the status when possible.

Note: See TracQuery for help on using queries.