closing tags check <br/> <input/>

closing tags check <br/> <input/>

Hi,

How to check if an element has or not a closing tag?

Example: 'input' and 'br' have no closing tags. Is there a way to know when traversing nodes?

Regards