abstract class fandoc::DocElem

sys::Obj
  fandoc::DocNode
    fandoc::DocElem

@Js

Source

DocElem is a container node which models a branch of the doc tree.

See pod doc for usage.

addChild

This addChild(DocNode node)

Source

Add a child to this node. If adding a text node it is automatically merged with the trailing text node (if applicable). Return this.

anchorId

Str? anchorId

Source

children

DocNode[] children := DocNode[,]

Source

htmlName

abstract Str htmlName()

Source

Get the HTML element name to use for this element.

isBlock

Bool isBlock()

Source

Is this a block element versus an inline element.

isInline

abstract Bool isInline()

Source

Is this an inline versus a block element.

write

virtual override Void write(DocWriter out)

Source

Write this element and its children to the specified DocWriter.

writeChildren

Void writeChildren(DocWriter out)

Source

Write this element's children to the specified DocWriter.