Normalize an entire document:
The normalizeDocument() method removes empty Text nodes, and joins adjacent Text nodes.
This method is not supported in any browser, but should work similar to the normalize() method.
Method | |||||
---|---|---|---|---|---|
normalizeDocument() | Not supported | Not supported | Not supported | Not supported | Not supported |
None |
Return Value: | No return value |
---|---|
DOM Version | Core Level 3 Document Object |
HTML DOM Reference: document.normalize()
HTML DOM Reference: node.normalize()