Please document .data/$.data caching
Neither the $.data nor the .data() documentation mention the cache system. I was retrieving objects using .data, and then setting a value in the object. Subsequent calls to .data didn't return the original object but the modified version. I had no idea there was a cache, it was very confusing. https://api.jquery.com/jquery.data/ https://api.jquery.com/data/
Click event is omitted once on Windows 10 Mobile
Hi, I am using jQuery 2.2.3 in a Windows 10 Mobile WebBrowser component. Alas it seems that click events get omitted once on Windows 10 Mobile so that only the second click (or touch in this case) is fired. The click event is registered like this: $('#id').on ( { 'click' : onClickDelegate } ); This works fine on Android and iOS and Windows Phone 8 / 8.1. Only on Windows 10 Mobile just the second touch fires the click
JQuery v1.11.3 memory leak
Hi Guys, We're developing a website using asp.net and JQuery v.1.11.3. It has frameset and frames (althought it is unsupported in HTML5). Our target clients use IE8. We encountered memory leak in IE8 everytime a page is being rendered by the frame element. I have also read several articles which states that there are memory leaks when using frames in IE8. So how do I confirm it as a bug? Well first I tried our website on other browsers such as Chrome and Firefox and it seems that memory leak doesn't
Jquery value cache not updating as expected.
Hi. I've found the caching performed in the val() function troublesome in my last project. First of all, allow me to explain what I'm trying to do. I need to dynamically hide and show some options inside a select. The naive approach, trying to hide the option elements themselves, only worked in desktop browsers. For mobile browsers, this is not the case: they render all elements (even the hidden ones). The only way of hiding options dynamically in Android I've found is wrapping the options to be
bugfix for jquery-2.1.1 vendorPropName() - critical for my apps
function vendorPropName( style, name ) { // shortcut for names that are not vendor prefixed if ( name in style ) { return name; } // check for vendor prefixed names var capName = ( name==='' ? name // i have jQuery.css({bottom:''}) which are Necessary for my apps to run. : name[0].toUpperCase() + name.slice(1) ), origName = name, i = cssPrefixes.length; while ( i-- ) { name = cssPrefixes[ i ] + capName; if ( name in style ) { return name; } } return origName; }
jquery bug
version:jquery2.0.3,the same to 2.1.1 var o = {}; o.n1 = o; console.log($.extend(true, true , {n2: o}));//or console.log($.extend(true, {}, {n2: o})); error:too much recursion
custom event doesn't bubbled up in IE 7-9
It's quite hard to describe, see the demo: http://jsfiddle.net/toobug/EsN5L/5/embedded/result/ (with the latest jQuery 1.x) http://jsfiddle.net/toobug/EsN5L/4/embedded/result/ (with jQuery 1.9.1) original code here http://fiddle.jshell.net/toobug/EsN5L/5/ (not compatible with IE) When the inner div is clicked, the outer should catch the custom1 event. It's all ok in Chrome, but in IE, if the click event of IE is bind with jQuery, it's ok, when the click event is bind with the built-in attachEvent,
Find Performance between 1.7.1 and 1.9.x and 1.10.0
Hi, all... I recently updated the jQuery version my site is using to 1.9.1 from 1.7.1. Unfortunately, performance suffered considerably, especially in IE 9. I have a jsperf test that outlines what I'm seeing. http://jsperf.com/jquery-1-7-vs-1-9/2 $(".k-grid-content tbody:first").find('> tr:not(.k-grouping-row,.k-detail-row,.k-group-footer)') In Chrome, find using the query above is 66% slower in jQuery 1.9 and 1.10 than in jQuery 1.7. in IE, that same query is 92% slower in jQuery 1.9 and 1.10.
Official jQuery CDN does not support HTTPS
I installed the EFF's excellent [HTTPS Anywhere](https://www.eff.org/https-everywhere) plugin for my browser. I noticed that jQuery's official CDN, as listed in their docs, does not support HTTPS. You get a 504 error. It sure would be nice for such a large and popular project to "take a stand" and encourage HTTPS hosting of assets. I ended up going through Google's CDN, but it's just not the same.
Abort request on ajaxSend breaks ajaxStart and ajaxStop
Hi, After call jqXHR.abort() inside ajaxSend, ajaxStart does not fire anymore. An silent exception is thrown in line 7986 of jQuery 1.8.3: try { state = 1; transport.send( requestHeaders, done ); } catch (e) { ... } transport is undefined.
Jquery.find in event.handlers is much slower than old quickIs
http://jsperf.com/jquery-1-7-2-quickis-vs-jquery-1-9-1-find With jquery 1.9.1 scroll on ios becomes very laggy because of event handlers of touchstart and touchmove bounded to document.body. Patching jquery with old quickIs resolve this problem. Is it possible to return quickIs in addition to current mechanic?
Bug of $(window).resize(function(e){}) in less then IE8
If in IE6\IE7\IE8,is will trigger $(window).resize enents when change DOM, In other browser,only if change browser`s window form size can tigger this events. is this a bug?
Confusion of "Anything" vs "Object" in documentation
What is the distinction between type "Anything" vs "Object" in documentation?For example: The args in deferred.resolve( args ) is Object. The data in .on( events [, selector ] [, data ], handler(eventObject) ) is Anything. Can we just use one name if there is no real different? I can make a pull request if you agree using only one of them.
Selector bug with input and attribute on version 1.9.x
Hello devs, Here is my simple html: <html> <head> <script src="http://code.jquery.com/jquery-1.9.0.min.js"></script> </head> <body> <form id="myForm"> <input value="" name="test" /> </form> <body> </html>When I load my page the first time, my input has no value, so when I query that way: $('#myForm :text[value][value!=""]') No input matchs which is correct. But when I manually enter a value in the input after pageload and I query the same way, it should
Wrong animation initial value calculation
I already reported this bug 6 days ago when tested first beta of jQuery 1.9 - http://bugs.jquery.com/ticket/13183 Unfortunately, v1.9 come out today and there were no updates and my script is broken. Any ideas when/if this is going to be fixed?
.ajax() fail when you click in a[href]
I posted it into bugs page, but dmethvin told that I need post here before. So, here I'm. Original post: Well... If you have a a[href^="abc:"] element then you click on it the browser will start a new request, but this pattern will do not execute anything, so you will stand on the same page. Take a look: http://jsfiddle.net/ZwYYT/ If you start an .ajax() request and .click() in this element, you will have an error, because your Ajax request will be aborted by browser. The problem is that jQuery
dist/jquery.js: Non-ASCII characters detected on Window 7.
How can I fix it? D:\Code\github\jquery> grunt path.existsSync is now called `fs.existsSync`. Running "submodules" task Running "selector:src/selector.js" (selector) task File 'src/selector.js' created. Running "build:dist/jquery.js:*" (build) task File 'dist/jquery.js' created. Running "lint:dist" (lint) task Lint free. Running "lint:grunt" (lint) task Lint free. Running "lint:tests" (lint) task Lint free. Running "min:dist/jquery.min.js" (min) task File "dist/jquery.min.js" created. Uncompressed
"grunt custom" doesn't work.
D:\Code\github\jquery [master]> grunt custom:+ajax,-dimensions,-effects,-offset path.existsSync is now called `fs.existsSync`. Running "custom:+ajax" (custom) task Creating custom build... Done, without errors. D:\Code\github\jquery [master]> cd .\dist ; ls 目录: D:\franckfang\Code\github\jquery\dist Mode LastWriteTime Length Name ---- ------------- ------ ---- -a--- 2012/10/14 17:57 0 .sizecache.json I don't know why there is nothing in
.promise() violates documented behaviour
Due to the documentation of .promise() the created Deferred object will resolve when all actions bound to the collection have ended. jQuery's implementation does not behave like that! (version 1.6 up to 1.8.2) The documentation still leaves space for two possible interpretations. Both are violated. Interpretation #1: For multiple elements the .promise() object resolves once all elements are not being animated at the same time. The minimal counter example for that meaning is: $('#foo').fadeOut(100);
.promise(type) doesn't work with non-default animation queues
Hi, On http://jsfiddle.net/creativecouple/3Y63M/ I have an example with .promise(type). There is one element animated (.delay) with the default queue 'fx' and the other one with another queue 'foo'. First question, informative: - Is it intended that non-default queues don't start on their own like 'fx' does? I always have to start it manually via .dequeue('foo'). Second question, the problem: - Why does .promise(type) don't wait for the non-default queue to finish? This is the same for any jQuery
Broken link in documentation portal
from main page, if you click on 'submit a new bug' ... the page report a 'my sql is gone away' error. I don't know if It's the right place to post, but... here I'm ...
Bug: jQuery.position() after css transform gives different result on Webkit & Firefox
Load the following page in Firefox (3.6+ or 4.0) and Chrome/Safari http://files.n2napps.com/bug-jquery-position-after-transition-webkit-firefox-different.html In Webkit browsers, the $box.position() take in account the css transform translate() operation, however in Firefox when we call after the css translate, the $box.position() return the same values than before the translate (even if the $box has been successfully translated) Here is the short code to illustrate this issue (but do a view source
Png problem in ie8 using fade with jQuery
Hi all, i have a problem with png image (with trasperency) in ie8. See screenshot in attachments to show my problem.. I use this coding: jQuery(function() { jQuery(".logo").css("opacity","0.5"); jQuery(".logo").hover(function () { // opacity 100% jQuery(this).stop().animate({ opacity: 1.0 }, "slow"); }, // mouse out function () { // opacity 50% jQuery(this).stop().animate({ opacity: 0.5
jquery 1.4.x, firefox 4 beta & ajax callbacks
Hi, I'm using firefox 4 beta 3, and I'm getting a strange behavior when using $.ajax : no callbacks are executed. I made a very small and simple test html page, just loading jquery in an empty html page. Than, using firebug's javascript console, I execute this : $.ajax({url:window.location.href, dataType:'text', success:function() {alert('success');}, error:function() {alert('error');}}); Then I get no alert, but I can see in Firebug's console that the request was successful. I tried this with jQuery
jquery-git.js vPull / build broken since Tue Mar 1 22:13:01 2011?
looks like the auto-build has been broken for some time : (
jqXHR.abort breaks ajaxStart and ajaxStop
I am using jqXHR.abort() to cancel pending Ajax requests. However, using abort causes ajaxStart and ajaxStop to break, so I tried the following fix: f_abort = XMLHttpRequest.prototype.abort; XMLHttpRequest.prototype.abort = function() { $.proxy(f_abort, this)(); if ($.active === 1) { $.event.trigger("ajaxStop"); $.active = 0; } else if ($.active > 1) { $.active--; } }; Something that puzzles me is that I can not find where jQuery.active is given an
encodeURIComponent isn't sufficient for encoding application/x-www-form-urlencoded
Heya, I'm struggling with form serialization in jQuery 1.4.2, in a Rails 2.3.8 project. I'm ajax-posting a form containing a textarea, grabbing the form contents using $(form).serializeArray(). $.ajax uses $.param to serialize the contents, which in turn uses encodeURIComponent. If my textarea contains: foo "bar" baz then the resulting request body contains text=foo "bar" baz which Rack/Rails manages to deserialize as simply "text"=>"bar". * The spec - http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1
Animations should (temporarily) override min-height and min-width
When animating, jQuery of course overrides width and height (as well as forcing overflow:hidden). If you have a min-height or min-width though, jQuery doesn't reset that--it really ought to, so you can, say, .slideDown() an element that when visible, has a min-height. Here's an example: http://www.babywhale.net/jquery/minheight.php I run into this one a lot more than you'd think! :)
bugfix for jquery-1.4.2, internet explorer 8, jquery.fx.step()
Hi. I'm developing a free web component, http://mediabeez.ws/lah, which runs into a startup problem when viewed in IE, caused by jquery. The thing crashes due to a "invalid argument" error. I hereby propose the following fix; jquery-1.4.2.source.js: line 5892 and further: old code: step: { opacity: function( fx ) { jQuery.style(fx.elem, "opacity", fx.now); }, _default: function( fx ) { if ( fx.elem.style && fx.elem.style[ fx.prop ] != null ) {
Importing jQuery 1.4.1 into greasemonkey scripts generates an error
Hi, I realise this is more of a glitch with greasemonkey rather than jQuery, but I thought I would post the info here anyway. Greasemonkey has an API called @require which can import a javascript library when the userscript is installed. http://wiki.greasespot.net/Metadata_block#.40require Unfortunately the latest version of jQuery (1.4.1) seems to be incompatible. The problem seems to be with "detecting-event-support-without-browser-sniffing" section around line 930. If you change var isSupported
jQuery.1.4.2.js needs patch at line 1919
I had to replace line 1919-1922 in my local copy of jQuery.1.4.2.js to prevent IE 8 javascript errors when navigating away from a page using window.location.href = 'blah blah': OLD CODE ======================================================== events = jQuery.data(this, "events"); if (events) { handlers = events[event.type]; }; NEW CODE ======================================================== try { events = jQuery.data(this,
Executing JavaScript after wrap method
Hello. I just have a problem with the wrap method of jQuery. Look at this markup: <div id="mainDiv"> <div id="innerDiv"> </div> <script type="text/javascript"> $(document).ready(function() { alert('test'); }); </script> </div> <span onclick="$('#mainDiv').wrap('<div />');">say test</span> When I insert it on my page I had very interesting results. It says 'test' when page is loaded and it is fine. Click on 'say test' span and you'll see
Possible jQuery 1.4.2 JSONP bug with executing complete handler twice
While debugging a plug-in tool that I have developed, ajaxMonitor. I found that $.ajax with JSONP was executing the complete handler two times more than once Here is the unit test written in QUnit to verify my results: test("jQuery.ajax() - JSONP, Local [validate completion count]", function() { expect(3); var otherHandlerCount = 0; var completeCount = 0; function validateCompleteCount(){ if ( otherHandlerCount == 1 ) { if(completeCount !== 1) {
Difference between .children() and .find() matched items when using a child selector
I noticed a difference in the behavior of the children() method versus the find() method, if the selector is a 'child selector'. In the example of the child selector documentation (http://api.jquery.com/child-selector/) change the script to: <script> // Child selector gives trouble $("ul.topnav").children("ul.topnav > li").css("border", "3px double red"); // matches $("ul.topnav").find("ul.topnav > li").css("border", "3px double blue"); // doesn't match $("ul.topnav > li", "ul.topnav").css("border",
slideDown doesn't work fine in IE7. please help
it works fine int all other browser ( including IE6, 8) but not work in IE7. The menu item slided down but it didn't push the next element down Please help thanks <script type="text/javascript"> jQuery(document).ready( function () { jQuery('#menudoc a.menuItem').click( function () { var sub = jQuery(this).next('div'); if (sub != null) { if (sub.is(':hidden')) { sub.slideDown('200'); } else { sub.slideUp('200'); } } } //function ); //click } //function ); </script> <style type="text/css"> #menudoc
Attributes filters not always working when using a context
Hello all, I realized attributes filters do not work when a context is passed in some cases : $(span[style*='font-size: x-small'] > strong, context); Simpler selectors work (span[attribute] e.g.), so i came to the conclusion that it is the combination of a complex attribute filter and a context which is (sometimes) buggy. I also verified it is not because of changes in the DOM (the node exists and has the attribute). I am not sure why precisely it does not work in my case, but if it can help, here
parseJSON with a string containing only a space
I'm using the jquery-ujs library with a Rails 3 project. Forms with a data-remote attribute get converted into an ajax request using ajax(). In jQuery's internals, the response from the server is passed to parseJSON() which, if the body is a whitespace only string, will raise a parser error. Rendering a response with `head(:ok)` will return a body containing only a single space and thus cause an error. I don't have any trouble making the fix with tests and submitting a pull request, but I'd like
jQuery.ajax triggers success callback on readyState=4,status=0
jQuery.ajax({ url: 'http://somewebsitethatdoesnotexist.com', success: function(){ console.log('yay') }, error: function(){ console.log('boo') } }) will print out 'yay' to the console. This is due to a workaround for opera in http://github.com/jquery/jquery/commit/c3c94823f27ee1e935586d46fd86f055f3a3d97d I'm not sure of the right way to fix it, but the most obvious hack is to: @@ -5158,7 +5158,7 @@ jQuery.extend({ return !xhr.status && location.protocol === "file:" ||
basic selector compatablity between jquery 1.4.2 and 1.2.1
I am upgrading the jQuery version of my site from jquery 1.2.1 to 1.4.2. When using a basic id selector with an "empty" name throws a JavaScript error is thrown when using jQuery 1.4.2 but not when using jQuery 1.2.1 (see example and error below). example: $('#').addClass('current'); error: Error: uncaught exception: Syntax error, unrecognized expression: # I realize this is a JavaScript bug that should be re mediated but removing the "bad" line of js code but this has been generated onto hundreds
IE: $('<form>') don't works properly
Hi again! I have a new bug for jQuery :p ok, not is good :/ Well, is simple: if you make a <form> in IE, and don't close /> or </form>, this don't will be recognized :S Really, strange. In Chrome, Opera and Firefox works fine. Test: - Work in all: http://jsbin.com/akuye3/8 - Don't work in IE: http://jsbin.com/akuye3/9 What occur: - When you open the test page, will show an alert; - When you click in "CLICK HERE", will post page and show an alert again; In IE, the second case don't occur. See the
Next Page