Summary: | Assigning .innerHTML should give a warning when invalid markup is ignored | ||
---|---|---|---|
Product: | WebKit | Reporter: | Shad Sterling <me> |
Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW --- | ||
Severity: | Normal | CC: | ahmad.saleem792, ap, bburg, bfulgham, cdumez, greggy, joepeck, pangle, rniwa |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Description
Shad Sterling
2014-10-20 07:48:57 PDT
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. |