TableParser class
Parses table elements into a padded grid.
- Inheritance
-
- Object
- NodeParser<
TagflowTableElement> - TableParser
Constructors
- TableParser()
-
Creates a table 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
nodesits 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, withstyleandclassnormalized.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) → TagflowTableElement? -
Parses
node, or returnsnull.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited