On 09/16/14 18:55, Stefan Behnel wrote:
You have three options:
- silently filter namespaces out
- throwing an exception when using html serialization with namespaced
elements 3) let namespaces pass
I'd choose 1 to make the lives of people who generate xhtml and html with the same code easier.
ISTM that 3) is the simpler and more obvious option, i.e. let libxml2 handle it.
for your convenience:
git remote add plq git://github.com/plq/lxml git fetch plq git merge plq/master
also, don't forget about void elements. I know they are rare ones, but they are in the spec.