Dealing for self-closing elements.