During the parsing, LagartoParser calls various callback methods of provided
Invoked before and after the content is parsed.
Callback invoked on a block of plain text.
Invoked on an HTML comment. The argument contains the comment content, without the tag boundaries.
Callback invoked foo all HTML tags: open, close, or an empty tag. The argument is a
Tag instance, containing various information about the tag: tags name, attributes, depth level, etc.
Invoked on all
script tags. The callback method receives the script Tag instance and the script body.
Callback for the
These two callbacks are invoked for XML-specific tags when parsing the XML content.
Every error is reported by visiting this method. Depending on the configuration, the error message would contain the exact error position or not.