Bug 820170 - Wrapping nodes into documents compartment. r=bholley