In unit components/lazutils/laz2_dom.pas.
TDOMElemen.IsEmpty seems to have an invalid implementation. The existing code checks for the presence of Attributes on the element.
The method is not part of the DOM specification. So I am assuming it is a convenience method.
And, according to the XML 1.0 specification, this implementation is not correct. XML defines an empty element as one with no content, as in child elements or text node, not Attributes. It explicitly allows attributes in an empty tag. See:
https://www.w3.org/TR/1998/REC-xml-19980210#sec-starttagsIn other words, both of the following qualify as empty elements:
Just looking for confirmation before submitting it as a bug...