README

bobzhang/html_parser/core does not have a README file

#
HtmlError

pub(all) suberror HtmlError {
StrictMode(ParseError)
InvalidSerialization(String)
UnsafeHtml(String)
SelectorError(String)
} derive(Eq,
Debug
)

Error type raised by strict parsing, serialization, sanitizer, and selector operations.

#
ParseError

pub(all) struct ParseError {
code : String
line : Int?
column : Int?
category : String
message : String
} derive(Eq,
Debug
)

Parser or tokenizer diagnostic with optional source location.

category identifies the source of the error, such as tokenizer or treebuilder. message defaults to code when no custom message is given.

#
ParseError::new

fn ParseError::new(code : String, line? : Int, column? : Int, category? : String, message? : String) -> ParseError

Construct a parse diagnostic.

#
parser_error_category

fn parser_error_category(code : StringView) -> String

Classify a parse-error code by the subsystem that normally reports it.

Known tokenizer error codes return "tokenizer". Other codes are treated as tree-builder/parser diagnostics and return "treebuilder".

Source Files

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io