jquery/jquery — pull request #1346 by jankuca (2013-08-28 23:48:03+00:00)
Title: allow form inputs to have names of "className"

The way browsers map inputs to form properties, it is impossible to access the class name of a `

` element containing an `` with the attribute of `name="className"` as `form.className` maps to the `` rather than the `class` attribute of the `

`.

This causes undesired results when using the current `addClass()` implementation:

```js
var form = jQuery('

');
form.append('');
form.addClass('b');

assert(form.getAttribute('class') == 'a b');
// Error: Expected "[HTMLInputElement] b" to equal "a b".
```