You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any preceding or following whitespace-only text nodes will be discarded.
I think the reference (preceding or following what) is ambiguous: Do we mean preceding/following the first none text node or do we mean before and after an element node (analogues to XML)?
The text was updated successfully, but these errors were encountered:
I think we meant only leading or trailing whitespace. But I also think this is a mistake. I think that we should say all content in p:inline is significant.
I think we should say that leading and trailing whitespace in an implicit inline is discarded.
So:
<p:with-input>
<doc> text </doc>
</p:with-input>
creates an input document with a single node, doc containing text. But
<p:with-input>
<p:inline>
<doc> text </doc>
</p:inline>
</p:with-input>
creates a document with three top-level nodes, initial whitespace, a doc element (containing text), and trailing whitespace.
If we strip whitespace out of p:inline, then there's no way to create a document that has leading whitespace.
In the specs for
p:inline
we say:I think the reference (preceding or following what) is ambiguous: Do we mean preceding/following the first none text node or do we mean before and after an element node (analogues to XML)?
The text was updated successfully, but these errors were encountered: