Commits on May 27, 2017
  1. Normalize code style

    jugglinmike committed May 27, 2017
  2. Added support for nested wrapping.

    DianeLooney committed with jugglinmike May 3, 2017
    Currently it follows the first children down and places it there.
    Probably needs more test cases written.
Commits on May 17, 2017
  1. Added $.merge following the specification at…

    DianeLooney committed with fb55 May 8, 2017
    Added test cases for $.merge
Commits on May 7, 2017
  1. .text() ignores script and style tags (#1018)

    Dreamiko committed with fb55 May 7, 2017
    * text function ignores script and style tags
    * .text() ignores script and style tags
  2. Test suite housekeeping (#1016)

    DianeLooney committed with fb55 May 7, 2017
    * Added some tests to increase coverage.
    Cleaned up attributes.val() tests to match the existing style.
    * Cleaned up the test cases I added in last commit.
Commits on Jan 22, 2017
  1. serializeArray should not ignore input elements without value attributes

    rgladwell committed with jugglinmike Apr 5, 2016
    serializeArray ignores input elements without value attributes. The
    value attribute is optional for most types of input elements, however:
    In this case, input elements without a value attribute should be parsed
    by this function, and default to an empty string value.
  2. Disallow variable shadowing

    jugglinmike committed with fb55 Jan 1, 2016
    When variable binding identifies are re-used in nested scopes
    ("shadowing"), code readability suffers. The same identifier may
    describe many distinct values in memory, and the process of
    disambiguating requires explicit attention from the reader. Mistakes
    made in this process can trigger bugs which, unlike unresolvable
    references, are not immediately apparent.
    Configure JSHint to warn on occurrences of nested reuse of variable
    binding identifiers in order to promote code clarity. Update the
    codebase to satisfy this new constraint.
Commits on Jan 15, 2017
  1. Update hasClass method

    sufisaid committed with jugglinmike Oct 3, 2016
    If function is called with empty string it cause infinite loop.
Commits on Aug 26, 2016
  1. Use modular lodash package (#913)

    billyjanitsch committed with fb55 Aug 26, 2016
Commits on Jul 4, 2016
  1. Return undefined in .prop if given an invalid element or tag (#880)

    elias-winberg committed with fb55 Jul 4, 2016
Commits on Jun 12, 2016
  1. Document, test, and extend static `$.text` method (#855)

    jugglinmike committed with fb55 Jun 12, 2016
    * Document and test static `text` method
    * Extend `$.text()` to operate on current root
    Update `$.root` to return the rendered text content of the current root
    element when no argument is specified. This increases API parity with
    the existing static methods `$.html` and``$.xml`.
    This change technically breaks backwards compatability, but the previous
    behavior was undocumented and untested.
Commits on Jun 7, 2016
  1. Use individual lodash functions (#864)

    sotojuan committed with fb55 Jun 7, 2016
    * Use individual lodash functions
    * Use `_` object for lodash functions
Commits on May 8, 2016
  1. Added `.serialize()` support. Fixes #69 (#827)

    twolfson committed with fb55 May 8, 2016
Commits on Feb 1, 2016
  1. Added default value for checkboxes/radios

    twolfson committed Feb 1, 2016
  2. Merge pull request #808 from leifhanack/lodash4

    fb55 committed Feb 1, 2016
    Update lodash dependency to 4.1.0
  3. Merge pull request #668 from rwaldin/prop-method

    fb55 committed Feb 1, 2016
    Prop method PR updated
  4. Merge pull request #671 from twolfson/dev/…

    fb55 committed Feb 1, 2016
    Added support for options without a `value` attribute. Fixes #633
  5. Merge pull request #704 from Rycochet/master

    fb55 committed Feb 1, 2016
    Fix for passing non-string values to .html or .text
  6. Merge pull request #797 from Delgan/641-appendTo_prependTo

    fb55 committed Feb 1, 2016
    Fix PR #726 adding `appendTo()` and `prependTo()`
Commits on Jan 31, 2016
  1. Update lodash dependeny to 4.1.0

    leif.hanack committed Jan 31, 2016
Commits on Jan 3, 2016
  1. Fix PR #726 adding 'appendTo()' and 'prependTo()'

    Delgan committed Jan 3, 2016
    Some improvements was asked by @jugglinmike for the pull request #726 which was intended to fix issue #641 by adding the two functions 'appendTo()' and 'prependTo()'.
    This commit is a continuation of #726 and fixes it.
    This is a combination of 5 commits:
    - Fix incorrect indentation
    - Fix the two test description provided
    - Extend arguments for '.appendTo()' and '.prependTo()'
        Based on jQuery documentation, these two functions accept also Node and Array as argument.
        As 'a.appendTo(b)' is actually just 'b.append(a)', the function has to convert the target to a Cheerio object as long as it is not one already.
    - Add unit tests to '.appendTo()' and '.prependTo()'
        These test case are intended to verify the correct behavior of functions for different arguments accepted according to the jQuery documentation (htmlString, Cheerio object, Node element, selector or Array of elements).
    - Update API documentation with '.appendTo()' and '.prependTo()'
    Moreover, there is two more changes which are not directly related:
    - Fix one incorrect unit test of '.after()' with Node object
    - Rename argument 'content' to 'target' in 'insert[After|Before]()' API
Commits on Jan 2, 2016
  1. Fix #780 by changing options context in '.find()'

    fb55 committed with Delgan Jan 2, 2016
    The issue, after upgrading css-select to v1.2.0, was due to an improper
    context of options passed to 'CSSselect()'.
Commits on Jan 1, 2016
Commits on Nov 22, 2015
  1. Merge pull request #732 from jugglinmike/reinstate-toarray

    fb55 committed Nov 22, 2015
    Reinstate `$.fn.toArray`
Commits on Aug 1, 2015
  1. Enable setting data on all elements in selection

    jugglinmike committed Aug 1, 2015
    According to the description of `$` (below), the method should
    set the data for *all* elements in the selection. Ensure this does not
    generate an error in those cases where any elements in the selection do
    not yet define a `data` property.
    > Store arbitrary data associated with the matched elements or return
    > the value at the named data store for the first element in the set of
    > matched elements.
Commits on Jul 4, 2015
  1. Reinstate `$.fn.toArray`

    jugglinmike committed Jul 4, 2015
    jQuery defines the `$.fn.toArray` method, and it is *not* deprecated, so
    Cheerio should document and maintain it for the foreseeable future.
Commits on May 28, 2015
  1. Complete implementation of `wrap`

    jugglinmike committed Oct 9, 2014
    - Implement selector-accepting signature of `wrap`
    - When a node is provided as an argument, wrap only the final element in
      the selection with that node (clone the node before wrapping and other
      elements in the selection)
  2. Normalize whitespace

    jugglinmike committed Oct 8, 2014
  3. Begin implementation of `wrap` method

    dandlezzz committed with jugglinmike Sep 6, 2014
    Tests and functionality for single element selection
Commits on Apr 22, 2015
  1. Fix for passing non-string values to .html or .text

    Rycochet committed Apr 22, 2015
Commits on Mar 28, 2015
Commits on Mar 8, 2015
  1. Added support for options without a `value` attribute. Fixes #633

    twolfson committed Mar 8, 2015
Commits on Mar 6, 2015
  1. fixed allignment

    fb55 committed Mar 6, 2015
Commits on Mar 3, 2015
  1. fix: handle some extreme cases like `data-custom="{{templatevar}}"`. …

    harish2704 committed with fb55 Nov 17, 2014
    …There is possibility error while parsing json .