mixinafSizzle::SElem

afSizzle::SElem

An abstraction around various Elem implementations.

attr

Source

abstract Str? attr(Str attrName)

Returns null if attr is not defined.

attrs

Source

abstract Str:Str attrs()

Returns a map of attribute name / value pairs.

children

Source

abstract SElem[] children()

Returns child Elems.

fromXml

Source

static new fromXml(XElem elem)

Create a Elem from an XML XElem instance.

name

Source

abstract Str name()

Returns the tag name.

parent

Source

abstract SElem? parent()

Returns the parent tag.

text

Source

abstract Str text()

Returns the tag text.