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
undefined is treated as if no value is passed, and will result in a get call. I agree that that is surprising. Let's see what jQuery does and align with jQuery's behavior.
When setting an existing attribute to
undefined
on a Cheerio element, the the attribute does not get removed or set toundefined
.However, when setting the same attribute to
null
, the attribute gets removed from the element.The text was updated successfully, but these errors were encountered: