classafFandoc::HtmlElem

sys::Obj
  afFandoc::HtmlNode
    afFandoc::HtmlElem

@Js

addClass

Source

This addClass(Str cssClass)

addHtml

Source

This addHtml(Str text)

addText

Source

This addText(Str text)

get

Source

@Operator
Str? get(Str attr)

Gets an attribue value

getUri

Source

Uri? getUri(Str attr)

id

Source

Str? id

isRawText

Source

Bool isRawText()

Returns true if this is a Raw Text element. See Raw text elements.

isVoid

Source

Bool isVoid()

Returns true if this is a Void element. See Void elements.

klass

Source

Str? klass

make

Source

new make(Str name, Str? cssClass := null)

name

Source

Str name()

rawTags

Source

const static Str[] rawTags := "script style textarea title".split

removeClass

Source

This removeClass(Str cssClass)

rename

Source

This rename(Str newName)

set

Source

@Operator
HtmlElem set(Str attr, Obj? val)

Sets an attribute value. Empty strings for name only attrs.

text

Source

Str text

title

Source

Str? title

voidTags

Source

const static Str[] voidTags := ...