Fix compatibility with lxml HTML parser.