jquery.getAttrs: Replace deprecated nodeName/nodeValue with Attr.name/value
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 4 Nov 2014 00:00:20 +0000 (00:00 +0000)
committerTimo Tijhof <krinklemail@gmail.com>
Tue, 4 Nov 2014 00:19:12 +0000 (00:19 +0000)
commit0423093de746fd6a4fb2458044a0643725712d63
treea9e6721364141a28f4cf60db9a5208578721ed54
parentd1792a616b60acd7913d4d6303a303a4dd718398
jquery.getAttrs: Replace deprecated nodeName/nodeValue with Attr.name/value

Chrome emits the following warning:
> 'Attr.nodeValue' is deprecated. Please use 'value' instead.

Attr.nodeName and nodeValue are not part of the DOM standard.
https://dom.spec.whatwg.org/#interface-attr

Attr.name and Attr.value are supported since at least IE8.
Confirmed the unit tests passing in IE8.

Simplify and improve the unit tests for jquery.getAttrs.

Change-Id: Ic086ece34b214dede26371cbc03ede0f2af37c54
resources/src/jquery/jquery.getAttrs.js
tests/qunit/suites/resources/jquery/jquery.getAttrs.test.js