Don't remove whitespace from li RT58472

when it is between inline elements
Use ```.nodeName``` (will always be in uppercase)
Use ```===```
Check against uppercase ("UL", "OL")