aboutsummaryrefslogtreecommitdiffstats
path: root/src/manipulation.js
Commit message (Collapse)AuthorAgeFilesLines
* Fix #10812, let .before() and .after() work on empty collections.Dave Methvin2011-11-171-2/+2
|
* Refactor clone a bit to only create one clone on any given codepathtimmywil2011-11-081-6/+4
|
* Remove test of the invalid object for IE9's sake; Rewrite the appropriate ↵timmywil2011-11-081-1/+1
|\ | | | | | | support test for html5 clone caching. Fixes #10682
| * Fixes jQuery.fragments cache and adds tests. Fixes #10682Rick Waldron2011-11-051-1/+1
| |
* | Fix busted rnoshimcache. Correctly clone detached unknown elems. Fixes ↵Rick Waldron2011-11-071-11/+24
| | | | | | | | | | | | | | | | #10667, #10670. - \s => |, Removes 4 bytes from gzipped build - Adds tests for clone attributes, children and events
* | Fix #10177. Pass correct index to function-parameter of `.wrap`Toby Brain2011-11-061-2/+4
|/
* Cleanup spacing in manipulation.js. Fixes #10601Rick Waldron2011-10-271-4/+4
|
* Fixes gross indents.Rick Waldron2011-10-241-6/+6
|
* Landing pull request 550. IE6,7,8 cannot use cached fragments from unknown ↵timmywil2011-10-231-13/+17
| | | | | | | | elems. Fixes #10501. More Details: - https://github.com/jquery/jquery/pull/550 - http://bugs.jquery.com/ticket/10501
* Do not call getElements on a script tag. Avoids unnecessary execution. Fixes ↵timmywil2011-10-121-4/+6
| | | | #10176.
* Move createSafeFragment to the top to satisfy linttimmywil2011-09-281-17/+17
|
* Fixes a fail in unit/traversing. Use an iframe's document for creating the ↵timmywil2011-09-281-17/+25
| | | | html5 fragment when necessary.
* Allow more cases to use `innerHTML` in the `.html` method.Dave Methvin2011-09-211-1/+2
|\ | | | | | | Thanks @cmcnulty for the pull and the patience!
| * #6782 - optimized regex to allow more html snippets to user innerHTMLcmcnulty2011-02-251-1/+2
| |
* | Landing pull request 490. 1.7 HTML5 Support for innerHTML, clone & style. ↵Rick Waldron2011-09-191-1/+20
| | | | | | | | | | | | | | | | Fixes #6485. More Details: - https://github.com/jquery/jquery/pull/490 - http://bugs.jquery.com/ticket/6485
* | Landing pull request 500. 1.7 - "public data" stored as a key on "internal ↵Corey Frang2011-09-191-20/+21
| | | | | | | | | | | | | | | | data" - Fixes #8921. More Details: - https://github.com/jquery/jquery/pull/500 - http://bugs.jquery.com/ticket/8921
* | jQuery.clone() check that destination child nodes are not null. Fixes #9587rwldrn2011-06-151-2/+5
| |
* | elem.getElementsByTagName calls the function in IE6/7. Fixes #9370.timmywil2011-05-251-1/+1
| |
* | Landing pull request 389. Null elements in clone to avoid memory leak in IE. ↵Scott Hughes2011-05-251-0/+2
| | | | | | | | | | | | | | | | Fixes #9341. More Details: - https://github.com/jquery/jquery/pull/389 - http://bugs.jquery.com/ticket/9341
* | Landing pull request 365. jQuery.buildFragment, ensure doc is a document; ↵Rick Waldron2011-05-131-3/+16
|\ \ | | | | | | | | | | | | | | | | | | | | | Fixes #8950. More Details: - https://github.com/jquery/jquery/pull/365 - http://bugs.jquery.com/ticket/8950
| * | jQuery.buildFragment, ensure doc is a document; Includes comments; Adds unit ↵Rick Waldron2011-04-301-4/+17
| | | | | | | | | | | | test. Fixes #8950
* | | Fixes #9221. Wraps openings of html comments and CDATA blocks found at the ↵jaubourg2011-05-111-2/+3
| | | | | | | | | | | | beginning of inserted script elements into a javascript block comment so that the new implementation of globalEval will not throw an exception in IE (execScript being less lenient than eval). Unit tests added.
* | | Fix problem with appending multiple string arguments in IE 6. Fixes #9072.John Resig2011-05-031-4/+4
|/ /
* | Landing pull request 332. Appending disconnected radio or checkbox inputs ↵timmywil2011-04-211-42/+71
| | | | | | | | | | | | | | | | | | and keeping checked setting Fixes #8060, #8500. More Details: - https://github.com/jquery/jquery/pull/332 - http://bugs.jquery.com/ticket/8060 - http://bugs.jquery.com/ticket/8500
* | IE9's support for SVG elements unfortunately does not extend to ↵timmywil2011-04-131-2/+6
| | | | | | | | clearAttributes. Checks for its presence before proceeding.
* | JSLint failed due to function created within for looptimmywil2011-04-121-3/+6
| |
* | Merge branch 'master' of https://github.com/rjgotten/jquery into ↵John Resig2011-04-121-1/+6
|\ \ | | | | | | | | | | | | | | | | | | rjgotten-master. Also added in unit tests covering the case. Fixes #6180. Conflicts: src/manipulation.js
| * | Check against the type attribute of script elements retrieved through ↵rjgotten2010-10-171-16/+18
| | | | | | | | | | | | | | | | | | getElementsByTagName() so that only those elements of type "text/javascript" are handled by 'clean'. Fixes #6180: jQuery.clean should not touch script tags that are not of type text/javascript
* | | - Added a hook to swap display none for width and height in browsers that do ↵timmywil2011-04-031-1/+2
| | | | | | | | | | | | not sufficiently support get/setAttribute
* | | Make the new attr/prop changes pass the test suite (in Webkit). There are ↵timmywil2011-04-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | still errors in IE. + Added hooks for selected, checked, readonly, disabled to removeAttr if set to falsey + Removed all attrs from attrFix, these aren't needed for setAttribute + If prop is used for class, do we want a propFix for class? - We could just assume the user should know to use className with prop. I've done the latter for now. + Created tests for $.fn.prop and $.fn.removeProp - Actually all I did was change broken attr tests to prop where it made sense.
* | | removing parensJordan Boesch2011-03-141-1/+1
| | |
* | | bug 6158; fixing replaceWith from throwing errors on non existant elementsJordan Boesch2011-03-051-4/+3
| | |
* | | bug 6158; fixing replaceWith from throwing errors on empty elementsJordan Boesch2011-03-051-0/+3
| |/ |/|
* | Make a new jQuery.support.noCloneChecked - splitting apart the previous ↵jeresig2011-02-231-12/+22
| | | | | | | | feature detect relating to clone in IE, fixes the last remaining issue with IE 9 RC. Fixes #8365.
* | Make sure .clone(true) correctly clones namespaced events. Fixes #4537.Anton M2011-02-101-1/+1
| |
* | Fix some whitespace issues. Improve and correct an events test.Anton M2011-02-101-4/+4
| |
* | Fixes #8098. Use the fast document.head when available. Don't set unneeded ↵Mathias Bynens2011-02-021-1/+1
| | | | | | | | "script.type = text/javascript".
* | Fixes #8129. Fix cloning multiple selected options in IE8.rwldrn2011-02-021-2/+2
| |
* | The default for .clone() is to not clone any events. Fixes #8123.jeresig2011-02-011-1/+1
| |
* | 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