Fixes to resolve unsafe warnings in WWAs

Setting the innerHTML property in an unsafe manner raises issues in
Windows Web Applications. Strings being passed into innerHTML cannot
include name the attribute. Creating elements, and settings attributes,
has far better cross-environment compliance.

Historical context:
- https://github.com/jquery/sizzle/pull/190
- https://github.com/jquery/sizzle/pull/193