JSFiddle - React, Tailwind, and code Playground

by Andrew Gerst

HTML

Undeclared assignment throws in IE, when identifier corresponds to element name/id.
<p id="foo"></p>
<form name="bar" action=""><p></p></form>

JavaScript

try {
	foo = 1;
} catch(e) {
	alert(e);
}

try {
	bar = 1;
} catch(e) {
	alert(e);
}