Handle template element in innerHTML

This makes us match the spec better. The only observable difference
is where the property is defined.