Fixing non-HTML5 tags after switching to LXML/HTML5 parsing.