You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling attr and passing in undefined as the value of the attr you are trying to set cheerio will return undefined. This is different than jQuery:
I have forked cheerio and created a failing test on master that shows this behavior (iwarren@bc75efb). I did not make the corresponding fix as I wasn't sure if this was an intentional divergence from jquery.
The text was updated successfully, but these errors were encountered:
Fixes#554
This makes cheerio behave like jQuery with these values.
Tests were part of the issue above, contributed by @iwarren.
Co-Authored-By: Ian Warren <[email protected]>
Fixes#554
This makes cheerio behave like jQuery with these values.
Tests were part of the issue above, contributed by @iwarren.
Co-authored-by: Ian Warren <[email protected]>
When calling attr and passing in undefined as the value of the attr you are trying to set cheerio will return undefined. This is different than jQuery:
I have forked cheerio and created a failing test on master that shows this behavior (iwarren@bc75efb). I did not make the corresponding fix as I wasn't sure if this was an intentional divergence from jquery.
The text was updated successfully, but these errors were encountered: