dom/document: improve #head and #body