Should prefer setAttribute for $(element).attr('attribute', value); not getAttribute
OmgImAlexis opened this issue · 0 comments
OmgImAlexis commented
Since jQuery supports getting via a single param and setting via 2 it'd be nice to see the warning show the correct message.
Right now this suggests using getAttribute
even though it should be setting it.
$(element).attr('attribute', value);