Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/cheeriojs/cheerio

The fast, flexible, and elegant library for parsing and manipulating HTML and XML.
https://github.com/cheeriojs/cheerio

fixed traversing tests

a5bbd78fbb4ab1a9dd8f182aef424dd0b91caff7 authored about 11 years ago by Jaro Spisak <[email protected]>
Merge pull request #309 from jugglinmike/simplify-make

Simplify `make` method

d44c431120068c18f68226177acc0301677654fc authored about 11 years ago by Matthew Mueller <[email protected]>
Simplify `make` method

Organize all logic for creating Cheerio objects within the Cheerio
constructor itself. Ensure th...

ade43d215fdb0925370321bad8f31ccef67cdd41 authored about 11 years ago by Mike Pennisi <[email protected]>
Merge pull request #294 from jugglinmike/extended-arrays

Avoid shadowing instance methods from arrays

a0a68268c45e59ce35d13156dfd3bfc81e6bc608 authored about 11 years ago by Matthew Mueller <[email protected]>
Release 0.12.4

e254fe6e6ac842702e7aeb7d03439a28788adade authored about 11 years ago by Matthew Mueller <[email protected]>
Coerce JSON values returned by `data`

From the jQuery API documentation on `$.fn.data` [1]:

> Every attempt is made to convert the st...

5e31b0df9e8c5df18b5089598468b05c0996821b authored about 11 years ago by Mike Pennisi <[email protected]>
issue #284: when rendering HTML, use original data attributes

4958e9d73955d71385da8dbf58c62531245bbd0c authored about 11 years ago by Rich Trott <[email protected]>
Avoid shadowing instance methods from arrays

Ignore instance properties on Arrays that are shared with the Cheerio
constructor (excepting `le...

d11f1cd17deb256c286ffeab59e95800b8ed12e1 authored about 11 years ago by Mike Pennisi <[email protected]>
Use Node.js binaries from their stable location

9d4f452441906fd316c47a6581807dc9202c9d3d authored about 11 years ago by Mike Pennisi <[email protected]>
Introduce JSHint for automated code linting

585f8cc34b8465b0b237f74406a9089add040a27 authored about 11 years ago by Mike Pennisi <[email protected]>
Use more direct test for truthiness

5b8539f41a65323b3778dc5612299b434b375ea9 authored about 11 years ago by Mike Pennisi <[email protected]>
Add missing return statement

Avoid following inappropriate code path.

85b56fd90d49a3e366bdeac603046a49935bed0f authored about 11 years ago by Mike Pennisi <[email protected]>
Prevent global leakage

293d32e0e0f91ce41ebdca736da1fb4aff7b6a3e authored about 11 years ago by Mike Pennisi <[email protected]>
Fix whitespace

10cda74bff1036dc6562a05677484e92a74d03fa authored about 11 years ago by Mike Pennisi <[email protected]>
Add semicolons

bd4450305178b2e6aa4846fa2f8dae06b98b22c6 authored about 11 years ago by Mike Pennisi <[email protected]>
Merge pull request #288 from jugglinmike/css-class-methods

Improve Css class methods

06b873b2960faec76beea149afbb3a68b190da91 authored about 11 years ago by Matthew Mueller <[email protected]>
Merge pull request #290 from jugglinmike/manipulate-func-sig

Implement function signature for manipulation methods

e3120807b7cdcc8a33295e211e6cfdbd5e67afed authored about 11 years ago by Matthew Mueller <[email protected]>
Rename and simplify helper function

Because this helper does not create Cheerio objects, `makeCheerioArray`
is somewhat misleading. ...

091f0ac8664662d095b101e874cca4e3bd7e8991 authored about 11 years ago by Mike Pennisi <[email protected]>
Prevent `find` from returning duplicate elements

2a643e68ee21aac579d833f1e6b05f26197ff89f authored about 11 years ago by Mike Pennisi <[email protected]>
Implement function signature of `replaceWith`

ac092744c1882e91550a7d80425680af252077a4 authored about 11 years ago by Mike Pennisi <[email protected]>
Implement function signature of `before`

069dad81adf4180f8697a2a662ce882163c66fff authored about 11 years ago by Mike Pennisi <[email protected]>
Implement function signature of `after`

d5765cc7d38b802638e4598713cdbb295cdaa6d2 authored about 11 years ago by Mike Pennisi <[email protected]>
Implement function signature of `append`/`prepend`

...additionally, ensure that the methods do not throw errors when
invoked with `undefined`.

13af62a1e97760f6f8defafccaa9da965947c667 authored about 11 years ago by Mike Pennisi <[email protected]>
Extend iteration methods to accept nodes

66d88e1579f34536029832c188b069d20fc06e75 authored about 11 years ago by Mike Pennisi <[email protected]>
Simplify `removeClass`

d57156400042badd8519a5794b6347046d11054a authored about 11 years ago by Mike Pennisi <[email protected]>
Complete function signature of `removeClass`

baedd587fe2eaeb6b3cb6ab087cdd07f21915a5f authored about 11 years ago by Mike Pennisi <[email protected]>
Complete function signature of `addClass`

dd9209caa93839ef1fc515ad3d0d01d919563b8b authored about 11 years ago by Mike Pennisi <[email protected]>
Fix bug in `removeClass`

Specifying a falsey value (such as the empty string) should have no
effect on the matched elemen...

c41386dec09e8642822a549a16aded0898b5fdd7 authored about 11 years ago by Mike Pennisi <[email protected]>
spelling

52418207012603940646a1485f16436eb63e15d4 authored about 11 years ago by Matthew Mueller <[email protected]>
Merge pull request #287 from jugglinmike/private-doc

Document "private" function convention

087bfc48694f077692f8672d8b70055c3310917d authored about 11 years ago by Matthew Mueller <[email protected]>
Merge pull request #286 from tp/patch-1

Fix variable declaration in depedency import

d3622ead0f772815c26e8cf02a33663d86cbce01 authored about 11 years ago by David Chambers <[email protected]>
Update `css` to use idiomatic private methods

0e5b529682be6c491339d3c53705c5b6a2c15f2e authored about 11 years ago by Mike Pennisi <[email protected]>
Document preferred approach for private methods

03cbced5588b49378008bdb7f11e8e22df35011f authored about 11 years ago by Mike Pennisi <[email protected]>
Change `;` to `,` in depency import declaration

Came across this, when running node with --use_strict.

bc21758ea6cf1ad91ef7e6dacd5990fa3f2cd240 authored about 11 years ago by Timm Preetz <[email protected]>
Merge pull request #272 from jugglinmike/fix-css

Improve `css` method

adce858eba1ef0937b73125aa3f2b35eec49f28a authored about 11 years ago by Matthew Mueller <[email protected]>
Remove dead code path

This condition is never satisfied because the private `parse` function
never returns `undefined`...

2d73bcbd578165c4140d2d42a2e105233f4db698 authored about 11 years ago by Mike Pennisi <[email protected]>
Remove undocumented functionality

The 0-argument signature is not supported by jQuery's `css` method.

579909ce342355609faa0157141f966999ab8c0b authored about 11 years ago by Mike Pennisi <[email protected]>
Implement API for getting multiple styles

d46a8a9e472950afbfa7b93b684168eb3d13fba5 authored about 11 years ago by Mike Pennisi <[email protected]>
Document 'css' method

36cc068bc3102e0e5da2bff7d41369fdf460a548 authored about 11 years ago by Mike Pennisi <[email protected]>
Implement API for setting styles with a function

877dade0109bbc6e462e9c68a745e2294b9bdb5e authored about 11 years ago by Mike Pennisi <[email protected]>
Implement API for unsetting styles

7f0b771c6940b457b4072e185dba9001f98e9200 authored about 11 years ago by Mike Pennisi <[email protected]>
Fix bug in setting styles

When setting the style of a multi-element selection, ensure that each
style is set independently.

b44dcd1f35395e7e84391ff52a927b82e067b655 authored about 11 years ago by Mike Pennisi <[email protected]>
Update code style

Normalize usage of spaces and semicolons.

c183ca9fa39c408d2d02cdf90310c6b2860d7172 authored about 11 years ago by Mike Pennisi <[email protected]>
Manage context explicitly

Instead of passing the context as a required first argument, manage it
using JavaScript's `Funct...

4ec20812a0dd5bacb56e90111e02ae3ce7e0cac9 authored about 11 years ago by Mike Pennisi <[email protected]>
Release 0.12.3

b33a752bbc5d38f71493dc1fc1587f7926a3ad71 authored over 11 years ago by Matthew Mueller <[email protected]>
Merge pull request #278 from cyberthom/master

Add .toggleClass() function

82598b5b92b705dc5e9bdff8281a84e38dd6f062 authored over 11 years ago by Matthew Mueller <[email protected]>
added additional tests for .toggleClass()

addac2ad4a3c167702d21fb72204ba76daaf2133 authored over 11 years ago by Thomas Heymann <[email protected]>
Add .toggleClass() function

aadfb7d597cbdeef0e37f52c33dc3d1ce2bd622d authored over 11 years ago by Thomas Heymann <[email protected]>
Updated to fit Cheerio's code conventions.

f9cdfcaa6f97dbf10e237fc22096c17d00896356 authored over 11 years ago by Torstein Thune <[email protected]>
Fix for keeping and using custom Cheerio options (Issue #273)

Cheerio.prototype.options are now overwritten if Cheerio is
instantiated with an options object....

e08b4762ba1ea39dfeaf2d04687ac9abfa78d4f6 authored over 11 years ago by Torstein Thune <[email protected]>
Merge pull request #253 from yields/master

add .css()

4e012dbb4e14546bf6e12c1a8c6de0c94919501d authored over 11 years ago by Matthew Mueller <[email protected]>
Merge pull request #271 from jugglinmike/contributing

Add contributing guidelines

ed8868235eaf6ae34aedea6e49bed725f1bf87ed authored over 11 years ago by Matthew Mueller <[email protected]>
Add contributing guidelines

7aeea11eaaf0e491197696c475b33297bd5401e9 authored over 11 years ago by Mike Pennisi <[email protected]>
Merge pull request #264 from andi-neck/master

add .data() function. cleaned up PR #221 from @rafaelrinaldi, added tests, updated readme

152ec3c299eb594e7bc670f10ba264c066157432 authored over 11 years ago by Matthew Mueller <[email protected]>
Merge pull request #270 from jugglinmike/doc-contents

Document `contents` and add tests

9adb2f9dac3cfcfc3ca4a270f3ebea04e20faf46 authored over 11 years ago by Felix Böhm <[email protected]>
Document `contents` and add test

ed561ff7a0e76d8bf0ff24496ba4b42f3ce828a7 authored over 11 years ago by Mike Pennisi <[email protected]>
Remove extra whitespace

5c2513bf9e5d80ae00040bc6fee59bc39d883e79 authored over 11 years ago by Mike Pennisi <[email protected]>
Merge pull request #267 from jugglinmike/fix-siblings

Fix bug in `siblings`

c7b3f1c170a4de54fc1e4d3538c02859b6f81404 authored over 11 years ago by David Chambers <[email protected]>
Fix bug in `siblings`

The selection returned by the `siblings` method should not contain *any*
of the elements in the ...

629c862a0d3ad58e928542d1008bcbb05510ee9a authored over 11 years ago by Mike Pennisi <[email protected]>
Merge pull request #266 from jugglinmike/fix-filter

Correct the implementation `filter` and `is`

be66c2d07867b158bc137779929ef3f6cd502732 authored over 11 years ago by Matthew Mueller <[email protected]>
Correct the implementation `filter` and `is`

According to the jQuery API documentation on `$.fn.filter` [1] and
`$.fn.is` [2], these methods ...

866cce897ca1f3a60ae69af369c65266dfeaa957 authored over 11 years ago by Mike Pennisi <[email protected]>
Update code style in tests

Promote consistency in usage of whitespace and semicolons.

cbd72780a5bc01503b3bff2d192c804ba126621d authored over 11 years ago by Mike Pennisi <[email protected]>
Merge pull request #234 from jlep/contents

Implement .contents()

c8af9c76948a6fd5b9bf3a205c17fec173973309 authored over 11 years ago by Matthew Mueller <[email protected]>
worked in @fb55 's improvements for PR #264

8ab96440fa45865935857f748fa73d114cdc8820 authored over 11 years ago by Andi Neck <[email protected]>
worked in @MatthewMueller 's comments on PR #264

938e9138c5c5148abec74de3c1385eeaade597a8 authored over 11 years ago by Andi Neck <[email protected]>
add .data() function. cleaned up PR #221, added tests, updated readme

4117ab8a3eadbd8f65f2b9337ccf014b6bf84b98 authored over 11 years ago by Andi Neck <[email protected]>
Release 0.12.2

96b0b30476335580c965a4fc77e93b6d42e96b04 authored over 11 years ago by Matthew Mueller <[email protected]>
Merge pull request #260 from jugglinmike/fix-text

Correct implementation of `$.fn.text`

deb1a5bfb908b079e647868514ac20e91ef93dd6 authored over 11 years ago by David Chambers <[email protected]>
Correct implementation of `$.fn.text`

This method should only act as a "getter" when the first argument is
undefined. If any other "fa...

f5e404efa0a0338fca5a8f3fbfd798c8d65dc0ad authored over 11 years ago by Mike Pennisi <[email protected]>
Merge pull request #258 from jugglinmike/array-refactor

Refactor Cheerio array creation

f36d78625742486695c0183a1c90de172d23646e authored over 11 years ago by Matthew Mueller <[email protected]>
Refactor Cheerio array creation

Because so many of jQuery's methods accept "mixed" arrays, the array
normalization logic should ...

e8a6f68bb7012bec15fe8c441f9384ee9f4916aa authored over 11 years ago by Mike Pennisi <[email protected]>
Merge pull request #257 from jugglinmike/arrays

Extend manipulation methods to accept Arrays

f679e0022e9608fa997aa1de5b3384d6a8083d32 authored over 11 years ago by Matthew Mueller <[email protected]>
Extend manipulation methods to accept Arrays

The jQuery API supports specifying an Array of DOM nodes when invoking
the following functions: ...

0c9a9d8fab96d27d47988f1f26296c4fd8f783f1 authored over 11 years ago by Mike Pennisi <[email protected]>
Merge pull request #254 from xiaohwan/master

support .attr(attributeName, function(index, attr))

6ac453274eae26dd6d2851e7c62910e34ebee045 authored over 11 years ago by Matthew Mueller <[email protected]>
.css(undefined) should return all styles

01a1629e40de7c8109f70e41ee5e27537ae78dfa authored over 11 years ago by Amir Abu Shareb <[email protected]>
remove uneeded .trim()

a50e63d14b95bbd18cdca9ac56ac382470b3d724 authored over 11 years ago by Amir Abu Shareb <[email protected]>
allow all whitespace chars

a3dc4bc9cbdf0fcab6820c542c63c2549d338279 authored over 11 years ago by Amir Abu Shareb <[email protected]>
support .attr(attributeName, function(index, attr))

11ab5fe5f538c3e1e4a2f67e1c4e3308e2f24a31 authored over 11 years ago by xiaohwan <[email protected]>
add .css()

c68028ad28f0df4e62c581863c7191ec086df68b authored over 11 years ago by Amir Abu Shareb <[email protected]>
updated contributors

411a0e450989ec96910fc819bf921dbf2a5104a7 authored over 11 years ago by Matt Mueller <[email protected]>
Release 0.12.1

7f77eed0a10ce26d5bd36729b92586bbb1795b7a authored over 11 years ago by Matt Mueller <[email protected]>
Merge pull request #245 from jugglinmike/parents-bug

Correct behavior of `Cheerio#parents`

9eff2f6ee8dcfe07cf7c7ddf3a8f236b5849242c authored over 11 years ago by Matthew Mueller <[email protected]>
Correct behavior of `Cheerio#parents`

When invoked on a top-level element, `parents` should return an empty
set.

Because a unit test ...

4783553a8cc66d1bc56500a857d4f169133b6cd1 authored over 11 years ago by Mike Pennisi <[email protected]>
Merge pull request #229 from jugglinmike/parent-bug

Parent bug

2cac9e48593b485cd908308d13410b95e8b7eaf2 authored over 11 years ago by Matthew Mueller <[email protected]>
Merge pull request #237 from khoomeister/fixes-232

fixes #232

7e18721317660b8ecfc6cd2185f0777cb3e48a2e authored over 11 years ago by David Chambers <[email protected]>
fixes #232

6ce04ecf3db23ba5f992652e51e43a6506d63161 authored over 11 years ago by Chris Khoo <[email protected]>
Making next(All) and prev(All) on empty objects return empty object.

46a17a368588be42c5d8efdc1c525ba36c181708 authored over 11 years ago by Matt Liegey <[email protected]>
Merge pull request #239 from khoomeister/clean-done-tests

removed redundant done from tests

90276ebd8f6291e97b99aa7d2aaeb4521e8f2db9 authored over 11 years ago by Matthew Mueller <[email protected]>
removed redundant done from tests

129b4296fe65f262329922c7ef273bebf7e4f243 authored over 11 years ago by Chris Khoo <[email protected]>
Merge pull request #231 from jugglinmike/parsehtml

Implement $.parseHTML

a487436709114c6a25d310cadba44b4405c268b6 authored over 11 years ago by Matthew Mueller <[email protected]>
bump htmlparser2

22b33732d0902d51a34f22bf932702d86f54cd1b authored over 11 years ago by Matt Mueller <[email protected]>
Fixed a grammar mistake in fixtures.js

3e542c957bfef828df3654e24cc8b1fa8cff9b37 authored over 11 years ago by Jarno Leppänen <[email protected]>
Added newline at end of fixtures.js

e280dc05fa166124323ed474470caf535d15e86b authored over 11 years ago by Jarno Leppänen <[email protected]>
Use _.reduce() instead of a manual loop in .contents()

04ecb621b3382e5ee3a2ae5761053dcc2ec71ac8 authored over 11 years ago by Jarno Leppänen <[email protected]>
Add test cases for .contents()

561013770abe7d4199efff6e721bfde207359390 authored over 11 years ago by Jarno Leppänen <[email protected]>
Added mixed text test fixture

d7d2ae8723fbb018d3656043c487a9452af99fc7 authored over 11 years ago by Jarno Leppänen <[email protected]>
Implements contents()

d087c61a6e3af38b0cc898d536b41c22a1d6c884 authored over 11 years ago by Jarno Leppänen <[email protected]>
Add missing unit test description

ae18808865caef2434fcaafc0c2ac0912eec954c authored over 11 years ago by Mike Pennisi <[email protected]>
Re-factor $.parseHTML to use $.load

2e4f73f1bdaa43fdf293ed12010945b5c6d12379 authored over 11 years ago by Mike Pennisi <[email protected]>
Implement $.parseHTML

From the [jQuery API
documentation](http://api.jquery.com/jQuery.parseHTML/):

> $.parseHTML( da...

7cb293c6fd975740fa2eaebbcd0873f3abd77c7d authored over 11 years ago by Mike Pennisi <[email protected]>