If you are using lxml for your work and feel like giving a bit of your own benefit back to support the project, consider sending us money through Pay Pal that we can use for fixing bugs in the software and improving its features and documentation.
in the LFAQ section; there are also articles about web site testing and management in the 'Resources' section.
"Elements" and "tags" are terms that are widely confused.
HTML documents contain tags, but do not contain the elements.
A valid model was produced, no matter how bad the "tag soup" supplied had been.
Only in the rarest cases would the parser abandon parsing altogether.