Closed Mr0grog closed 5 years ago
FYI, looks like the Travis error was a networking problem, not an actual test failure.
Since the static method has been around forever, I think we should just use it. I guess I missed it while implementing the soup adapter.
Done!
Thanks, merged.
@kovidgoyal are you planning on publishing a release with this anytime soon? It would be super helpful if I could depend on the package from PyPI instead of pointing to a GitHub commit URL :)
done
🎉 Thank you!
When parsing with
treebuilder='soup'
, we were sending incorrect arguments to the Beautiful SoupDoctype
constructor, which resulted in poor results if you tried to serialize the resulting soup later. You’d wind up with the original doctype declaration nested inside another declaration, like so:This adds some tests around the issue and slightly modifies the code so the right arguments are used. Fixes #18.