A question about the impact may be caused by table's clientWidth/Height behavior change of Chromium
Hi, I'm a contributor of Chromium Project. I made a change of https://chromium-review.googlesource.com/c/chromium/src/+/1763510 which make table's clientWidth/Height match to its offsetWidth/Height. The corresponding issue page for that change is https://bugs.chromium.org/p/chromium/issues/detail?id=978019. In case of Firefox, its already has that behavior, and that is what we intend to introduce by the change above (In perspective of interoperability, it would be good I think). I got a positive
Future of jQuery Real Time Data
Will jQuery every make something for real time data effecting. Am not talking about Ajax request. As Ajax does some short stuff but we have to add time interval to refresh page. Which I think is making too many unnecessary requests to sever. To which we want the data should effect only when the server side is effected in same time in all device. I know there are alternatives but will jQuery bring this kind of change in future or not?
Error in JQuery core
Hello, I am new to JQuery and I downloaded a JQuery core file. When I loaded it into DreamWeaver it told me there is an error in the code. I am hoping you guys can quickly tell me how to fix it! DreamWeaver says that there is a syntax error on the line that says " .catch(function(error){ " Any Ideas? Thank you! jQuery.fn.ready = function( fn ) { readyList .then( fn ) // Wrap jQuery.readyException in a function so that the lookup // happens at the time of error handling instead of callback //
Why was the global flag disabled for cross domain script type $.ajax requests in older versions of jQuery
I'm using jQuery 1.12 and I noticed my global ajax event handlers (`ajaxSend`, `ajaxStart`, etc) weren't running for `$.ajax` requests with `dataType="script"` and `crossDomain=true`. After some investigation I found that in 1.12, jQuery always disabled the global flag on the request if it the dataType is script and it's cross domain! What was the reason for this behavior? Why was it originally added and why was it later removed? Relevant information: From what I can tell, the behavior was originally
JQuery 3.1.1 vs 2.2.4 change in behavior appending rows to a table
The following code: $('<TABLE />').append('<TR><TD>1</TD></TR>').appendTo('BODY'); results in slightly different DOM structures. Under 2.2.4 you get <TABLE><TBODY><TR>... Under 3.1.1 you get <TABLE><TR>... (one has a TBODY and one does not) This causes problems if you later have selectors like #id TBODY TR (to get all the body rows, and no header rows). I've reviewed the jQuery Core 3.0 Upgrade Guide and can't see anything that might be related. So my question is... is this expected behaviour or
there maybe a memory leak about deferred in 3.x
When our project upgraded to jQuery3.2.1 (from 2.2.4), we found a memory leak about Deferred in jQuery3.x . the promise.then method does not release the handler & handler Closure . it work well in jQuery2.x and native Promise in chrome . look at the following case: http://plnkr.co/edit/DpMkLV2mqzwlX4Ruuk7i
Question about isPlainObject method
from the source code: "return typeof Ctor === "function" && toString.call( Ctor ) === ObjectFunctionString;" jQuery. isPlainObject ( {} ) // true jQuery. isPlainObject ( new Object ) // true but i don't understand this situation: /* function Ctor(){ } jQuery. isPlainObject (new Ctor); // true */ because toString.call( Ctor ) === ObjectFunctionString // this should is false.but result is true
Build and Deploy api.jquery.com project
Hi Team, I'am trying to deploy api.jquery.com code locally with the help of jquery-wp-content.But when I tried to apply the "grunt deploy" command the below error is thrown. $ grunt deploy Running "check-modules" task Running "xmllint:all" (xmllint) task >> Missing executable: xmllint. >> You must install libxml2. >> Downloads are available from http://www.xmlsoft.org/downloads.html Warning: Task "xmllint:all" failed. Use --force to continue. Aborted due to warnings. Can you please let
Jquery 1.x support in Jquery migrate 3.0.0 js
Hi Team, My web application is currently using below Jquery files. 1) jquery-2.1.4.min.js 2) jquery-migrate-1.2.1.js So now we are migrating to latest v 3.0.0 and instead of above files we are using 1) jquery-3.0.0.min.js 2) jquery-migrate-3.0.0.js So could you please tell me that if it will work fine after replacing jquery-migrate-1.2.1.js. Regards, Amit
document.ready and window.load firing order
Until version 2.2.4, $(document).ready fires before $(window).on("load", function), but with version 3.0.0 $(window).on("load", function) fires first! example: <script> $(document).ready(function(){ alert("ready fired"); }); $(window).on("load",function(){ alert("load fired"); }); </script> Is this a bug or a new feature?
Add to jquery unserialise function
First, my English is poor We can get the corresponding URL via jquery params method,like that: var params= '{ "a": [ 0, [ 1, 2 ], [ 3, [ 4, 5 ], [ 6 ] ], { "b": [ 7, [ 8, 9 ], [ { "c": 10, "d": 11 } ], [ [ 12 ] ], [ [ [ 13 ] ] ], { "e": { "f": { "g": [ 14, [ 15 ] ] } } }, 16 ] }, 17 ] }' $.params(params) /*get params a[]=0&a[1][]=1&a[1][]=2&a[2][]=3&a[2][1][]=4&a[2][1][]=5&a[2][2][]=6&a[3][b][]=7&a[3][b][1][]=8&a[3][b][1][]=9&a[3][b][2][0][c]=10&a[3][b][2][0][d]=11&a[3][b][3][0][]=12&a[3][b][4][0][0][]=13&a[3][b][5][e][f][g][]=14&a[3][b][5][e][f][g][1][]=15&a[3][b][]=16&a[]=17
What can actually help in? (Jquery contribution)
Hi, I'm not quite sure if this is the right place to ask and if not then I apologize. But I was wanting to contribute somehow in the Jquery project somehow, so I checked out the contribution page on the site but it sort of left me lost. I have some experience in Jquery and JavaScript but i'm definitely not a whiz at it. I do have some extensive experience in CSS3 and HTML5. So I was wondering where would I be able to contribute (if at all), and if I can't contribute what should I do so that I can?
source bug???why cssHooks get method computed param always value is true?
please jquery core developer look this ! thank you very much! http://forum.jquery.com/topic/source-bug-why-csshooks-get-method-computed-param-always-value-is-true
how to bind a callback in capture manner?
in Javascript,we can bind a callback like this: ele.addEventListener("click",func,true); the last parameter true will make the event broadcast in a capture manner. but when using jquery,how to get the same result?
text() setter method on textnode
Hello, I asked question on stackoverflow but still not sure what could be the reason for this method to not set textnode value. Code sample: $('div').contents().filter(function(){ return this.nodeType === 3; // text node }).text("no change!"); Wouldn't it be an improvement to handle it? What could be the downside/issue? Regards.
Lifetime of $._data
I'm currently working on a tool that examines accessibility issues pertaining to client websites and would like to add jQuery event handling as part of our automatic analysis. One of our rules accounts for having a tabIndex property associated with elements on the page that have an assigned click handler in order to ensure that the elements are also keyboard accessible. Given an HTMLElement, you can use the $._data method to access the event handlers that are associated with said element, which allows
How was code contributed before GitHub Pull-request was used?
Does anyone know how the code was contributed to the project before GitHub Pull-request was used? via patch on mailing list or issue tracker? Is that history archived? Thank you! Shin
What is the purpose of styles() method in jquery ?
i was just going through the source of jquery css() method and came across the following lines of code : function (name, value) { return access(this, function (elem, name, value) { var styles, len, map = {}, i = 0; if (jQuery.isArray(name)) { styles = getStyles(elem); len = name.length; for (; i < len; i++) { map[name[i]] = jQuery.css(elem, name[i], false, styles); } return map; }
iPhone 6 : jQuery(window).height() .width() dont work one bit.. fix included.
Was testing my seductiveapps.com software on iPhone 6 recently and found that my dialog resizing routines worked but not the background resizing which uses jQuery(window).width() and .height().. Well, it worked, but only after changing orientation on the damn thing once or twice.. This works from the start of the page's lifetime (not mine, found it a few years ago somewhere as browser-independent window width/height detection code) : var height = (window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight);
Why does _evalUrl() use async:false?
Why does _evalUrl() use async:false? Would it ever make sense for it to use async: true? Does it affect the user experience at all? My guess is that by doing it synchronously rather than async, you guarantee that javascript files are loaded and executed in order. Is that the reason? A common question when using jQuery is: Why am I seeing this warning: "Synchronous XMLHttpRequest on the main thread... jquery.js?body=1:9628"? The answer is that they are inserting a new <script> tag to the HTML via
jQuery css in parent iframe (firefox)
Hi well I am trying to do a $(someElement).css("display"); someElement was returned from parent window and was passed to iframe via a function. This call in firefox returns undefined due to the following code in jQuery: getStyles = function( elem ) { // Support: IE<=11+, Firefox<=30+ (#15098, #14150) // IE throws on elements created in popups // FF meanwhile throws on frame elements through "defaultView.getComputedStyle" if ( elem.ownerDocument.defaultView.opener
Adding catch() method to jQuery deferred.promise.
I've read that jQuery 3.0 will support Promise/A+ spec but I've noticed that the catch() method is missing from the deferred.promise() object. Are there any plans to add catch() to deferred.promise ?
function augmentWidthOrHeight( elem, name, extra, isBorderBox ) causes continuous width decrease
On Firefox 33.0.3, with jQuery JavaScript Library v1.8.3, with RichFaces Core Implementation by JBoss by Red Hat, version 4.3.0.Final When moving the rich faces popup lef-right, the popup is shrinking continuously. <div style="position: absolute; z-index: 100; left: 299px; top: 74px; width: 815px;" id="xxxx" class="rf-pp-cntr "><div id="yyyyy" class="rf-pp-shdw" style="opacity: 0.1; left: 5px; top: 5px; bottom: -5px; width: 815px;">.. etc... On the background, the function augmentWidthOrHeight( elem,
jquery.min.map cause 404 in jquery#1.10.2
I'm using jquery#1.10.2 from bower, because jQuery mobile requests this version. In the jquery.min.map, there is a "sources":["jquery-1.10.2.js"], which is not exist in the dir, and it'll cause a 404 error in console of Chrome's developer tools. Will you please change it to "sources":["jquery.js"] to prevent this error? Thanks!
$.text() feature request
I think it is nice to have wrapper for document.createTextNode('text'). It can be $.text('text') or even $('"text"') My current use case: var label = image.after(document.createTextNode('text')); will be var label = image.after($.text('text'));
Difference in $.data between jQ1 and jQ2
jQ 1.11 camelizes keys added with $.data, while jQ2 does not camelize them: http://jsfiddle.net/trixta/6wAKJ/ Just wanted to ask wether this bug is already known? Can't believe it's unknown :-D.
mouseover and mouseout issue
Hi, I am working on a project on that when i mouse over on black dot - 1. navigation menu shown and when i mouseout menu hide (this is working properly) 2. When i click on that black dot my navigation menu animation load again(which is wrong) and menu content display But my navigation menu hide(which is need to show that navigation menu and menu content on click). 3. When i click on another navigation dot currently loaded menu and menu content need to be hide and display clickable dot menu and content.
What's the rationale of not exposing object's events handlers collections?
What's the rationale of not exposing object's events handlers collections? I've stumbled upon a situation where I wanted to pause all current transitions by registering all transitionend handlers, changing all properties to their current used values, pausing transitions (with forced style refresh afterwards so that it makes effect), running a custom callback and then restoring everything, including handlers. I know this particular case is probably not the most common one but there are cases when
Feature request: remove undelegated events without removing delegated
off() already supports the opposite of this To remove all delegated events from an element without removing non-delegated events, use the special value "**". How about enabling removal of non-delegated events without removing delegated by passing in null or an empty string as the selector? Here is my use case on page load my modal module attaches triggers using a delegated listener (to allow for lazy loading content into the page without having to worry about attaching new listeners) $('body').on('click.modal',
jQuery selector speed vs ExtJS
I visited page http://jsperf.com/mojo-of-dojo-and-jquery and noticed that selector of ExtJS are over 100 times faster. This is huge difference. Anybody know the source of difference?
"HEAD" and Commit ID showing inside my code
After creating a pull request, https://github.com/jquery/jquery/pull/1289 I see a two things I don't understand (lines 941 - 945 and 963 - 967): https://github.com/jquery/jquery/commit/51e0f62c239b12e90cd87a8a19980f954870fc49#L0R941 here: 941 +<<<<<<< HEAD <my code change> 945 +>>>>>>> 68178ff366b6e59f85ad772c0711f826b5b494ef and here, 963 +<<<<<<< HEAD <my code change> 967 +>>>>>>> 68178ff366b6e59f85ad772c0711f826b5b494ef That ID on 945 & 967 is a prior commit, https://github.com/jquery/jquery/commit/68178ff366b6e59f85ad772c0711f826b5b494ef
How can I contribute to jQuery Mobile core development?
Hi friends, I have extensively used jQuery Mobile API for my own developments and wanted to give something in return to its Community so I would like to join the jQuery Core team as a volunteer developer. I have checked the project's GitHub page and could not find which is the process I should follow or who I should contact with, I already have a GitHub account that I would use for logging into the repo. Can someone give me a hint on this? Is there any place in the GitHub wiki wehere I can find how
How can i edit and develope the core code?
Hi, I wanna contribute in the core development. So, i started to read the documents but i got confused and i have some important questions : Which IDE should i use for coding? How can i be one of the contributor? because my name is not between the contributor of core.js . How should i apply for being a contributor ? Please, introduce me a helpful document that guide me step by step for know how can i contribute,edit,develop and publish codes. Thank you
$.proxy
Hi, as stated here http://api.jquery.com/jQuery.proxy/ additionalArguments Type: Anything Any number of arguments to be passed to the function referenced in the function argument. I understand ... the arguments are added after (additional) the already existing ones, i.e. var fn = $.proxy(function(a, b, c, extra) { alert(a + ' ' + b + ' ' + c + ' ' + extra); }, this, 'x'); fn('a', 'b', 'c'); I would expect to see the alert box with 'a b c x' inside, but I get 'x a b c' because the additionalArguments
Incorrect instruction for building jQuery
I followed by this HOWTO link to build jQuery on my machine (Win 2008R2 x64), but when it comes to executing cd jquery && npm installit throws me the following exception in Bash cmd line: $ cd jquery && npm install module.js:340 throw err; ^ Error: Cannot find module '\\node_modules\npm\bin\npm-cli.js' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16)
jQuery() vs this.constructor()?
I noticed a few places (init, pushStack, end) in core.js where this.constructor() is used instead of jQuery() which is used throughout the rest of the library. Is there a reason for this? As I understand it this.constructor() is always a reference to jQuery(), is there any situation where that would not be true?
what does “Support: Firefox 18+” mean in jQuery1.9.1 source code?
I'm reading jquery1.9.1 source code. At the beginning, it says: // Can't do this because several apps including ASP.NET trace // the stack via arguments.caller.callee and Firefox dies if // you try to trace through "use strict" call chains. (#13335) // Support: Firefox 18+ //"use strict"; I've read ticket #13335 saying because of apps like ASP.NET trace call stack via arguments.caller.callee, "use strict" was removed. but I don't understand what "Support: Firefox 18+" means? Does it mean, if you
jquery html5 support?
I recommend future of jquery html5 support ===canvas Tag==== event -getContext -beginPath -arc -fillStyle -fill -stroke -more ===Video Tag==== event -play -stop -record -take photo -more ===audio Tag==== event -play -stop -record -more ==scroll value== -scrollheight -more ================
Are there plans for Sizzle 2.0 dropping oldIE?
Since jQuery already has two versions, one of them dropping oldIE, wouldn't it be good to also create a separate Sizzle 2.0 version dropping oldIE? Regards, Michał Gołębiowski
modifying $.when() behavior?
hey guys, currently $.when() behaves similarly to Q.spread() https://github.com/kriskowal/q#combination when/apply https://github.com/cujojs/when/blob/master/docs/api.md#whenapply that is...the results of multiple promises are passed to the done/fail/progress callbacks via .apply(this, resolvedValues). Most other .all() implementations (Q.all, when.all, RSVP.all) opt to do this via .call(this, resolvedValues), resuting in an single resolvedValues argument passed to the callback rather than as separate
Next Page