Invalid elements now are syntax errors; updated SYNTAX.rst and added unit tests to reflect this