Closed inkeliz closed 5 years ago
The <template> have a "attribute" of content for read the content of the template itself.
<template>
content
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.
go-js-dom
HTMLAnchorElement
HTMLAudioElement
HTMLTemplateElement
The
<template>
have a "attribute" ofcontent
for read the content of the template itself.It's possible to do using:
But, the
go-js-dom
have a bunch of elements, likeHTMLAnchorElement
,HTMLAudioElement
and so on. But actually, don't have seems to have aHTMLTemplateElement
.