cheeriojs/cheerio — pull request #524 by akant10 (2014-06-24 13:55:51+00:00)
Title: Added double quotes to radio attribute name

In the master, the name of a radio button will be set as:

name=newStringX

rather than

name="newStringX"

This causes issues when characters such as brackets are introduced to the code. The line that produces the error is line 169, found below:

var queryString = 'input[type=radio][name=' + this.attr('name') + ']:checked';

Line 169 should resemble line 183 with double quotes used in the value attribute, found below:

parentEl.find('input[type=radio][value="' + value + '"]').attr('checked', '');

Therefor, Line 169 should be corrected to:

var queryString = 'input[type=radio][name="' + this.attr('name') + '"]:checked';