18 Sep
2014
18 Sep
'14
7:13 p.m.
Hello, On 09/16/14 18:55, Stefan Behnel wrote:
You have three options:
1) silently filter namespaces out 2) 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.
done. see: https://github.com/plq/lxml/compare/lxml:master...master 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. best, burak