Gecko's MutationObserver.target is nullable, against spec
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/target
What specific section or headline is this issue about?
No response
What information was incorrect, unhelpful, or incomplete?
dom/webidl/MutationObserver.webidl states, that:
// .target is not nullable per the spec, but in order to prevent crashes, // if there are GC/CC bugs in Gecko, we let the property to be null.
What did you expect to see?
Should the doc also have this information?
Do you have any supporting links, references, or citations?
https://bugzilla.mozilla.org/show_bug.cgi?id=896272
Do you have anything more you want to share?
No response
MDN metadata
Page report details
- Folder:
en-us/web/api/mutationrecord/target - MDN URL: https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/target
- GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/api/mutationrecord/target/index.md
- Last commit: https://github.com/mdn/content/commit/ef75c1741b450c2331204be5563ee964ad5f4c48
- Document last modified: 2023-04-07T06:16:45.000Z
Thanks for filing!
Should the doc also have this information?
Yes, but it should be in browser compat.
@def00111 If you like, you can add a note here that explains that the property is nullable:
https://github.com/mdn/browser-compat-data/blob/45fe059ed0a9c6b94d522be58afc361f44b2e1dc/api/MutationRecord.json#L18-L20