I started working on an experimental project tonight. I've realized that I need to determine if a group of selected nodes are self closing or not.
For example, suppose I query the dom and get this collection of nodes:
<br/><br/><p></p><div></div></br/>
Is there a property on the elements that can determine which are which?
Moreover, rather than filter on specific html elements (oh, if this were the only limitations), suppose that I am parsing an XML document that can contain arbitrarily named tags.