Closed
Description
Instances of HTMLElement don't have access to remove function.
I'm getting the following error:
Property 'remove' does not exist on type 'HTMLElement'.
Example:
var element = document.getElementById('myid');
(<HTMLElement>element).remove();
[NoInterfaceObject,
Exposed=Window]
interface ChildNode {
[Unscopeable] void before((Node or DOMString)... nodes);
[Unscopeable] void after((Node or DOMString)... nodes);
[Unscopeable] void replaceWith((Node or DOMString)... nodes);
[Unscopeable] void remove();
};
DocumentType implements ChildNode;
Element implements ChildNode;
CharacterData implements ChildNode;