aboutsummaryrefslogtreecommitdiffstats
path: root/src/manipulation.js
Commit message (Collapse)AuthorAgeFilesLines
* Use the original element/fragment as the last item to be appended to the ↵Colin Snover2011-01-281-6/+13
| | | | document instead of the first in order to prevent missing elements when appending to multiple elements. Fixes #8070.
* Merge branch '8017lint' of https://github.com/rwldrn/jquery into 8017lintrwldrn2011-01-221-3/+4
|
* Cleaned up; fixes per reviewrwldrn2011-01-201-9/+11
|
* cloneCopyEvent; jQuery.clone() reviewrwldrn2011-01-201-63/+71
|
* Merge in data_nocollide branch. Fixes #6968, improves unit testing framework ↵Colin Snover2011-01-171-13/+20
|\ | | | | | | checks for leaky stuff.
| * Fix domManip leaks the first element when appending elements to multiple ↵Colin Snover2011-01-091-1/+1
| | | | | | | | other elements.
| * Change the way jQuery.data works so that there is no longer a chance of ↵Colin Snover2011-01-091-14/+21
| | | | | | | | collision between user data and internal data. Fixes #6968.
* | Ensure that buildFragment clones elements properly in all browsers. Fixes ↵Colin Snover2011-01-091-4/+18
| | | | | | | | #3879, #6655. Also improves form element clone tests and fixes bugs in $.fn.clone exposed by these new test cases related to the values of checkboxes and radio buttons in IE.
* | Ensure that the DOM element ref in an event handler is removed by cleanData ↵Dave Methvin2011-01-091-0/+5
|/ | | | to avoid an IE6/7/8 memory leak. Fixes #7054.
* Don't cache non-html strings in buildFragment to avoid possible collision ↵Dave Methvin2010-12-271-2/+2
| | | | with the names of Object methods like toString. Also makes the unit tests 0.5% to 8% faster. Fixes #6779.
* Don't use for-in loops on Arrays. Fixes #7817. Thanks to dmethvin.Colin Snover2010-12-221-2/+2
|\ | | | | | | | | Conflicts: src/manipulation.js
| * Use a for loop rather than for/in loop when copying events, so that code ↵Dave Methvin2010-12-201-5/+5
| | | | | | | | will work with an augmented Array.prototype. Fixes 7809.
* | Remove code for ticket #7717 which has been marked WONTFIX to match existing ↵Colin Snover2010-12-221-1/+1
| | | | | | | | $.data functionality and to prevent infinite loops caused by circular references.
* | Fix a potential error in the previous commit caused by the use of a separate ↵Colin Snover2010-12-221-5/+9
| | | | | | | | index variable. Thanks to dmethvin for the review.
* | Fix #7717 and #7165. Thanks to dmethvin and iliakan for their help fixing ↵Colin Snover2010-12-191-2/+2
|/ | | | these issues.
* Address some code style issues in the clone fix.Colin Snover2010-12-161-4/+2
|
* More specific version numbers.Colin Snover2010-12-121-2/+2
|
* Speed up & compatibility improvements for new clone mechanism in IE.Colin Snover2010-12-121-20/+52
|
* Merge branch 'bug5566' into csnover-bug5566. Fixes #4386, #5566, #6997.Colin Snover2010-12-121-43/+46
|\ | | | | | | | | | | Conflicts: src/manipulation.js test/unit/manipulation.js
| * Fix the clone method to be a little less insane in IE, which fixes the new ↵Colin Snover2010-12-121-25/+31
| | | | | | | | event-cloning clone() as well as probably a bunch of IE-related clone bugs.
* | Backing out cec68e2b00d86357c18b576cbaed52cc1ea42a74, was causing serialize ↵jeresig2010-12-091-16/+16
| | | | | | | | tests to fail. Un-fixes #5566.
* | Merge branch 'bug5566' of https://github.com/csnover/jquery into csnover-bug5566jeresig2010-12-091-16/+16
|\|
| * Clone fragments in domManip using jQuery.clone instead of ↵Colin Snover2010-12-061-1/+1
| | | | | | | | DocumentFragment.cloneNode in order to carry over event data. Fixes #5566, #6997.
| * Clean up empty lines with whitespace in manipulation.jsColin Snover2010-12-061-15/+15
| |
* | Make sure IE clones body elements correctly. Fixes 4386.Anton M2010-11-211-1/+4
|/
* Make sure that when multiple variables are being declared that assignments ↵John Resig2010-11-091-10/+21
| | | | are each done on their own line.
* We don't do end of line comments, move them above.John Resig2010-11-091-1/+2
|
* Make sure that the contents of the element is still in place when ↵John Resig2010-09-281-4/+2
| | | | html(Function) is called. Fixes #6733.
* Applied the RegExp issues reported by Jeff Robinson here: ↵jeresig2010-09-221-11/+6
| | | | http://jmrware.com/articles/2010/jqueryregex/jQueryRegexes.html Additionally broke out all remaining inline RegExp. Fixes #7062.
* Make sure that the removeEvent and buildFragment private functions are ↵jeresig2010-09-081-4/+4
| | | | exposed (to help with access across modules). The final API for each of these is very much in flux and will likely change before the final release. Fixes #7011.
* Make sure that jQuery works even when the individual modules are loaded ↵jeresig2010-09-081-1/+5
| | | | separately AND jQuery.noConflict(true) is used. Fixes #7011.
* Made it so that you no longer need to build jQuery in order to run the test ↵jeresig2010-03-231-0/+16
| | | | suite (but you'll still need a checkout of QUnit and Sizzle, at least).
* Make sure that special remove and teardown events get called when .die() is ↵jeresig2010-03-091-1/+1
| | | | used. Additionally made sure that default actions are triggered when namespaced events are used. Fixes #6202 and #6250.
* No need to use .call() anymore since we switched from .apply() for appendTo, ↵jeresig2010-03-051-1/+1
| | | | etc. Thanks to Robert in 2c08004f6d4e7f11a875190e132d204a25cb9418 for the heads-up.
* Attempted to fix #6227, not entirely sure if it's a problem as I'm having a ↵jeresig2010-03-051-1/+1
| | | | hard time reproducing it. Regardless, the change is harmless and potentially even speeds up appendTo, etc. slightly.
* Make sure that we don't try to remove data from an applet. Re-Fixes #1675.jeresig2010-03-021-0/+4
|
* More changes to get jQuery in line with JSLint.jeresig2010-03-011-8/+8
|
* Land some additional tweaks related to running through JSLint.jeresig2010-03-011-1/+1
|
* Found a better detect for deleting an expando, added back in removeAttribute ↵jeresig2010-02-131-1/+4
| | | | as it does work in IE.
* Clean up expando removal code - only try to delete the expando from an ↵jeresig2010-02-131-2/+6
| | | | element if it's possible.
* Make sure that elements that have been removed also have their special ↵jeresig2010-02-131-3/+8
| | | | events cleaned up. Fixes #6084.
* Don't inject style elements using innerHTML as they will go away in IE. ↵jeresig2010-02-131-1/+1
| | | | Fixes #5977.
* Make sure that we don't try to use a detached node (that was in a fragment) ↵jeresig2010-02-131-1/+1
| | | | as a fragment in IE. Fixes #5829.
* Make sure the fragment isn't used if it's not the same set we're working ↵jeresig2010-02-131-5/+9
| | | | with. Fixes #6068.
* Rename internal .getText to maintain parity between it and the primary ↵jeresig2010-02-131-1/+1
| | | | .text(). Fixes #6094.
* Make sure that fragments containing options aren't cached.jeresig2010-02-131-1/+1
|
* Make sure that &#...; entities are encoded properly. Fixes #6042.jeresig2010-02-051-1/+1
|
* Removed extraneous nodeName check from ↵jeresig2010-02-011-1/+1
| | | | f95147f465932cb91e1a6aace50c556820ca4074 commit.
* Only detach the incoming elements to replaceWith if they're DOM nodes. Fixes ↵Noah Sloan2010-02-011-4/+5
| | | | #5986.
* Fix for problem in IE 8 where deserialized (then reserialized) form markup ↵jeresig2010-02-011-1/+3
| | | | was getting malformed. Thanks IE. Fixes #5998.