Element <sup> loses its parent in html
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
New
|
Undecided
|
Unassigned |
Bug Description
Element <sup> loses its parent
=======
import lxml.html
html = """
<html>
<body>
<p>
<div> </div>
</p>
</body>
</html>
"""
def main():
node = lxml.html.
html_out = lxml.etree.
print(html_out)
if __name__ == '__main__':
main()
==================
Output
<html>
<body>
<p> </p>
<div> </div>
<sup>test</sup>
</body>
</html>
=======
Python : sys.version_
lxml.etree : (4, 8, 0, 0)
libxml used : (2, 9, 12)
libxml compiled : (2, 9, 12)
libxslt used : (1, 1, 34)
libxslt compiled : (1, 1, 34)