Added hasAttribute() polyfill for IE6 and IE7
Fixed test for IE
Minor - Renamed variable and extracted common regex into variable
Use strict equality check
Added TODO comment
Commented out useless noop
Added newline2.html
Fixed caret insertion in IE and added more tests to verify the fix
Minor - Simplified feature detection
Fixed range setter bug in IE, added unit test to verify fix, and added newline3.html to manually test behavior