Refs #360. Added tests for the wrapping of inline elements and text nodes in the document root. Also, fixed some issues to get the tests to pass in IE.
Refs #360. Added a test that has some issues passing in older IE versions to the known failing tests.