treshugart/Smallblock — Issue #2: Ensure DOMDOcument doesn't munge HTML of partial pages.
Author: treshugart
Created: 2011-11-18 06:59:21+00:00
State: open

DOMDocument will try and put whatever it parses in a `body` tag when it is saved. We need to check if the containing HTML has any non-body element and place it accordingly.