TypeScript-DOM-lib-generator
TypeScript-DOM-lib-generator copied to clipboard
Element API like after,before,remove,replaceWith has wrong MDN link
document.body.remove() tooltip points to
interface ChildNode extends Node {
/**
* Removes node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/remove)
*/
remove(): void;
}
But should point to https://developer.mozilla.org/en-US/docs/Web/API/Element/remove
https://github.com/microsoft/TypeScript-DOM-lib-generator/blob/6621974de7d3d03ade59760ea4b1cdb12698f492/baselines/dom.generated.d.ts#L5644-L5675
This looks like a bug in the emitter.
since ChildNode is defined as mixin in spec, and is used by DocumentType Element CharacterData, it's OK to link to CharacterData.remove(), but it'll be better also to link to Element.remove() and DocumentType.remove()