Actions
Bug #3842
closedWhitespace added before paragraph end tag in HTML serialization
Start date:
2018-07-16
Due date:
% Done:
100%
Estimated time:
Legacy ID:
Applies to branch:
trunk
Fix Committed on Branch:
trunk
Fixed in Maintenance Release:
Platforms:
Description
With indentation enabled, using the HTML output method, the content
<p>Another 
 para</p>
is serialized as
<p>Another
para
</p>
Which contravenes the serialization specification. This states (for both XQ1.0/XT2.0 and XQ3.1/XT3.0)
Whitespace MUST NOT be added other than before or after an element, or adjacent to an existing whitespace character.
(It is allowed however by XSLT 1.0, where the equivalent rule is
"If the indent attribute has the value yes, then the html output method may add or remove whitespace as it outputs the result tree, so long as it does not change how an HTML user agent would render the output."
Please register to edit this issue
Actions