Don't rely on the ElementTree Comment factory being the tag attribute on Comments.
Don't rely on the ElementTree Comment factory being the tag attribute on Comments.

This is needed for xml.etree.cElementTree under 2.6 (and likely hence custom
installs of cElementTree 1.2), where the tag property is equal to
xml.etree.ElementTree.Comment (i.e., the pure Python version).

Similarly, don't rely on type(comment.tag), as this is just function!

gsnedders/html5lib-python,dstufft/html5lib-python,mgilson/html5lib-python,alex/html5lib-python,dstufft/html5lib-python,mindw/html5lib-python,alex/html5lib-python,html5lib/html5lib-python,gsnedders/html5lib-python,alex/html5lib-python,ordbogen/html5lib-python,mindw/html5lib-python,ordbogen/html5lib-python,mindw/html5lib-python,html5lib/html5lib-python,mgilson/html5lib-python,mgilson/html5lib-python,ordbogen/html5lib-python,dstufft/html5lib-python,html5lib/html5lib-python