Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whitespace Nodes #55

Open
webern opened this issue Jun 14, 2020 · 0 comments
Open

Whitespace Nodes #55

webern opened this issue Jun 14, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@webern
Copy link
Owner

webern commented Jun 14, 2020

Support whitespace as nodes as a precursor to whitespace preservation support

https://www.w3.org/TR/2006/REC-xml11-20060816/#NT-S

S (white space) consists of one or more space (#x20) characters, carriage returns, line feeds, or tabs.

White Space


[3] | S | ::= | (#x20 \| #x9 \| #xD \| #xA)+
-- | -- | -- | --

Note:

The presence of #xD in the above production is maintained purely for backward compatibility
with the First Edition. As explained in 2.11 End-of-Line Handling, all #xD characters literally
present in an XML document are either removed or replaced by #xA characters before any other
processing is done. The only way to get a #xD character to match this production is to use a
character reference in an entity value literal.
@webern webern added the enhancement New feature or request label Jun 14, 2020
webern added a commit that referenced this issue Nov 23, 2020
Normalize whitespace of text nodes, ignores considerations for #55
and treats all nodes as if 'whitespace collapse' were in effect.

Improve processing instructions #12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant