xml:space
attribute in HTML
In documents being parsed as XML, the parser's handling of white space can be controlled to some extent by specifying a value for the xml:space
attribute as in:
xml:space="default"
- indicates that the default mode of handling white space should be used for the element and its decendants
xml:space="preserve"
- indicates that all white space that is coded in the document should be included in the data that is passed from the parser to the application
Since the default behavior for HTML elements is to preserve white space, both values have the same effect and so the xml:space
attribute can simply be omitted.