DocElem is a container node which models a branch of the doc tree.
See pod doc for usage.
Slots
- addChildSource
-
Add a child to this node. If adding a text node it is automatically merged with the trailing text node (if applicable). Return this.
- anchorIdSource
-
Str? anchorId
- childrenSource
-
DocNode[] children := DocNode[,]
- htmlNameSource
-
abstract Str htmlName()
Get the HTML element name to use for this element.
- isBlockSource
-
Bool isBlock()
Is this a block element versus an inline element.
- isInlineSource
-
abstract Bool isInline()
Is this an inline versus a block element.
- writeSource
-
override Void write(DocWriter out)
Overrides fandoc::DocNode.write
Write this element and its children to the specified DocWriter.
- writeChildrenSource
-
Void writeChildren(DocWriter out)
Write this element's children to the specified DocWriter.