We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
<template>
content
1 parent bf09848 commit 97bf36cCopy full SHA for 97bf36c
readme.md
@@ -167,11 +167,17 @@ interface Root <: Parent {
167
a `div`. HAST Elements corresponds to the [HTML Element][html-element]
168
interface.
169
170
+One element is special, and comes with another property: `<template>` with
171
+`content`. The contents of a template element is not exposed through its
172
+`children`, like other elements, but instead on a `content` property which
173
+houses a [`Root`][root] node.
174
+
175
```idl
176
interface Element <: Parent {
177
type: "element";
178
tagName: string;
179
properties: Properties;
180
+ content: Root?;
181
}
182
```
183
@@ -380,3 +386,5 @@ Yields:
380
386
[vfile]: https://github.com/vfile/vfile
381
387
382
388
[properties]: #properties
389
390
+[root]: #root
0 commit comments