Typescript: .createContextualFragment(…).children[0].content “Property 'content' does not exist on type 'Element'”

前端 未结 0 1367
旧巷少年郎
旧巷少年郎 2020-11-29 09:04

I\'m looking to return an actual \'element\' and not the document-fragment as in:

function toDomNode(t: string): HTMLElement {
    return document.createRange         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题