if you call document.getElementById("someid").innerHTML = htmlString when htmlString contains malformed tags, the malformed tags are silently dropped. For example, http://jsbin.com/qikeha/2/edit?html,console,output This should not be silent, a warning should be logged.
Sounds like a good idea to me!
The example URL in comment 0 fails to illustrate the problem. In that example, nothing is actually dropped, what is intended as the second paragraph is taken to be part of a property on the <p> tag. To get the second paragraph to disappear, the third paragraph must be omitted. Here's an updated example: http://jsbin.com/qikeha/4/edit?html,console,output
I am not sure on web-spec but all browsers (Chrome Canary 106, Firefox Nightly 105 and Safari 15.6 on macOS 12.5) and does not show any warning in console on comment saying there should be a warning before and after this? Appreciate if someone can comment aligned with web-spec whether it is something to be discussed in WHATWG Github or something since all agree to mark as "RESOLVED WONTFIX"? Thanks!
This is not a web spec matter, and still seems like a good idea to me.