handling of elements that don't close and self-close, work in progress