DOMDocument->normalizeDocument()Normalizes the document
&reftitle.description;
DOMDocumentvoidnormalizeDocument
This method acts as if you saved and then loaded the document, putting the
document in a "normal" form.
&reftitle.returnvalues;
&return.void;
&reftitle.seealso;
The DOM Specification