Self-closing elements support.