Closed rome-user closed 2 months ago
See the following page https://google.github.io/closure-library/api/goog.dom.html#appendChild
The parameters parent and child are both listed as Node | null. However, the implementation of the function tells a different story.
parent
child
Node | null
https://github.com/google/closure-library/blob/5918355a90382ab6d17e31ba7df8044d40f319f1/closure/goog/dom/dom.js#L1258-L1264
Strictly speaking, this is correct. In practice, we've found it impossible to fix all of these incorrect nullability issues because of the mountain of legacy code that depends on them.
This issue is being closed as a preparation step before archiving the repository. See the README for more detail.
See the following page https://google.github.io/closure-library/api/goog.dom.html#appendChild
The parameters
parent
andchild
are both listed asNode | null
. However, the implementation of the function tells a different story.https://github.com/google/closure-library/blob/5918355a90382ab6d17e31ba7df8044d40f319f1/closure/goog/dom/dom.js#L1258-L1264