MatthewMueller/cheerio — pull request #105 by ironchefpython (2012-10-03 15:09:56+00:00)
Title: Test for numeric attributes

I noticed a minor incomaptibilty with jQuery, when you set an attribute with `elem.attr(name, value)`, jQuery automatically coerces the value to a string. Cherrio's current behavior is to die.

In my local version of Cheerio, I corece value to a string on line 21 of api/attributes.js, but I identified a couple other places to do this (for example when the encode function is defined in `util.js`). If you like, I can add that fix to this request.