Avoiding use of Dynamic Attributes with innerHTML

Some environments (such as Windows 8 Store Apps) will not permit the use of
innerHTML along with dynamic attributes like 'name'. You can, however,
set them via the setAttribute method. This should help those migrating
their code from the browser to a native application.

Pinging @dmethvin