Fixes an error that shows up in IE8+ in compatibility mode.
Merge pull request #826 from SteveSanderson/826-ie-getattributenode-error

IE7 element.getAttributeNode('value').specified == null