ElementParser class

Parses text nodes and generic elements.

Inheritance

Constructors

ElementParser()
Creates an element parser.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

canHandle(Node node) → bool
Whether this parser handles node.
override
isPreformatted(Node node) → bool
Whether node sits inside a <pre> element, where the HTML specification preserves whitespace.
inherited
normalizeWhitespace(String text) → String
Collapses runs of spaces and tabs in text, keeping newlines.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseAttributes(Element element) → Map<String, String>
The attributes of element, with style and class normalized.
inherited
parseChildren(Element element, TagflowParser parser) → List<TagflowNode>
Parses the children of element.
inherited
toString() → String
A string representation of this object.
inherited
tryParse(Node node, TagflowParser parser) → TagflowElement?
Parses node, or returns null.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited