.previousSibling and whitespaceThis gives an '[object Text]', because of the whitespace between </li> and <li>.
Here there isn't any whitespace, so you get the HTMLLIElement. There is no whitespace in the source file.
IE gives the LI in both examples.