Comment 3 for bug 1840141

Revision history for this message
Isaac Muse (facelessuser) wrote : Re: xmlns attribute issue with XML parser

Looking into BeautifulSoup, it seems when an HTML attribute is stored, it would check if the name was None, if it was, it would store the attribute properly, treating the name as the key. But now, lxml is returning the name as an empty string. This causes bs4 to create a key in the form "prefix:". It seems the best course of action is to simply check: "if name:" instead of "if name is None:". This restores sane logic and resolves this breaking bug.