Project

Profile

Help

Bug #3842

closed

Whitespace added before paragraph end tag in HTML serialization

Added by Michael Kay almost 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Serialization
Sprint/Milestone:
-
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 &#xa; 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

Also available in: Atom PDF