File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -167,11 +167,17 @@ interface Root <: Parent {
167
167
a ` div ` . HAST Elements corresponds to the [ HTML Element] [ html-element ]
168
168
interface.
169
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
+
170
175
``` idl
171
176
interface Element <: Parent {
172
177
type: "element";
173
178
tagName: string;
174
179
properties: Properties;
180
+ content: Root?;
175
181
}
176
182
```
177
183
@@ -380,3 +386,5 @@ Yields:
380
386
[ vfile ] : https://github.com/vfile/vfile
381
387
382
388
[ properties ] : #properties
389
+
390
+ [ root ] : #root
You can’t perform that action at this time.
0 commit comments