标签: typescript tslint
TypeScript代码:
var el = document.elementFromPoint(x, y); if (el != null) { el = el.parentElement; }
tslint给出错误:
Type 'HTMLElement' is not assignable to type 'Element'.
我认为HTMLElement是Element的子类。是什么给了什么?