If you don’t get any better answers, I pretend that innerHTML
doesn’t exist, because as you have observed it doesn’t do what people typically expect it to. I use this strategy and enforce a rule in my designs that no HTML passes between backends and mobile apps; only business-domain JSON data.
2 Likes