Pass only strings to setProperty as the value argument on IE9 requires DOMString.