MatthewMueller/cheerio — pull request #204 by jhubble (2013-05-08 19:45:05+00:00)
Title: model jQuery .val() checkbox behavior

In jQuery, .val() returns the value of the checkbox, regardless of the current check state. When setting the value, it changes the value attribute and returns the original object.
Removing the special case for checkboxes in the code allows it to duplicate jQuery behavior.