Renamed to convention.
Fixes & test for RT#41035: segfault on parsing invalid multi-line HTML.