Preserve Whitespace
- Updated2025-07-30
- 1 minute(s) read
Sets include ignorable whitespace. This property allows you to specify whether a validating parser includes ignorable whitespaces as Text Nodes. It has no effect on non-validating parsers that always include non-markup text. The default is TRUE, which causes the parser to add ignorable whitespaces to the DOM tree as Text Nodes. If you set the property to FALSE, the parser discards all ignorable whitespace and does not add Text Nodes to the DOM tree.
Remarks
The following table lists the characteristics of this property.
| Short Name | PreserveWhitespace |
| Data type | ![]() |
| Permissions | Read/Write |
