HTML DOM normalizeDocument()Method
Examples
Normalize a document:
document.normalizeDocument();
Definition and Usage
The normalizeDocument() method can remove empty text nodes and merge adjacent nodes.
Currently, no mainstream browser supports the normalizeDocument() method, but a similar method can be used:normalize()method.
Browser Support
![]()
![]()
![]()
![]()
![]()
Currently, no mainstream browser supports the normalizeDocument() method
Syntax
document.normalizeDocument()
Parameters
None.
Return Value
No return value.
Technical Details
| DOM Version | Core Level 3 |
|---|
Other Extensions
Document Object