@@ -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: `` 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 |