Dear,
I am using hubbub in a html and xml parsing project, but have recently
come upon a problem.
When a self closing tag without arguments is found, it's being treated
as a non closing tag, and thus envelopes all tags that follow it.
The following XML:
<?xml version="1.0" encoding="UTF-8"?>
<root>
<a />
<b x="1"/>
<d />
<e />
</root>
is parsed as:
<?xml version="1.0" encoding="UTF-8"?>
<root>
<a>
<b x="1">
<c>
<d></d>
</c>
</b>
</a>
</root>
Here's a traceback:
append_child
-> parent name: body
-> child name: root
append_child
-> parent name: root
-> child name: a
append_child
-> parent name: a
-> child name: b
append_child
-> parent name: b
-> child name: c
append_child
-> parent name: c
-> child name: d
Any clues on what might be going awry?
greets
Jan