Fixed void element checking.
Fixed void element checking.