dominikh / go-js-dom

MIT License
248 stars 42 forks source link

HTMLTemplateElement is missing? #62

Closed inkeliz closed 5 years ago

inkeliz commented 5 years ago

The <template> have a "attribute" of content for read the content of the template itself.

It's possible to do using:

template := t.template.QuerySelector("template")
content := dom.WrapDocumentFragment( template.Underlying().Get("content") )

But, the go-js-dom have a bunch of elements, like HTMLAnchorElement, HTMLAudioElement and so on. But actually, don't have seems to have a HTMLTemplateElement.