objectify.E.foo(CDATA('')) doesn't work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
`builder.E(tag, cdata)` was fixed in #1330525, but `objectify.E(tag, cdata)` doesn't work.
Checked in 4.1.0, 3.8.0, and 3.3.6. Compare:
```
In [32]: for module in objectify, builder:
...: print tostring(
...:
<b xmlns:py="http://
<b><![CDATA[hello lxml.builder]]></b>
In [41]: print("%-20s: %s" % ('Python', sys.version_info))
...: print("%-20s: %s" % ('lxml.etree', etree.LXML_
...: print("%-20s: %s" % ('libxml used', etree.LIBXML_
...: print("%-20s: %s" % ('libxml compiled', etree.LIBXML_
...: print("%-20s: %s" % ('libxslt used', etree.LIBXSLT_
...: print("%-20s: %s" % ('libxslt compiled', etree.LIBXSLT_
...: ## -----
...:
Python : sys.version_
lxml.etree : (4, 1, 0, 0)
libxml used : (2, 9, 5)
libxml compiled : (2, 9, 5)
libxslt used : (1, 1, 30)
libxslt compiled : (1, 1, 30)
```
Changed in lxml: | |
importance: | Undecided → Wishlist |
status: | Triaged → Confirmed |
Probably very easy to implement as an additional input value type. Pull request welcome.