XML is whitespace sensitive in some grammar productions.
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- tooling
Research direction
Start by reading the @xml-tools/parser handling for the XML start-tag and attribute Eq cases described in the W3C XML specification. Check how whitespace is currently reported, then ensure redundant whitespace produces a custom syntax error without interrupting fault-tolerant parsing; done means both cases expose the expected errors while parsing continues.
Written by the indexing model from the issue text.
Description
Apparently whitespace cannot be freely used everywhere, examples:
- https://www.w3.org/TR/REC-xml/#sec-starttags
- between
<andName - around the
Eqof an attribute.
So @xml-tools/parser is not exposing the correct syntax errors in this case.
But on the other hand this parser is fault tolerant and should be able to handle small syntax errors
such as these transparently.
The solution would likely be to manually perform checks for redundant during parsing.
and save a custom syntax error message if such WS was encountered.
These syntax errors should not affect the regular parsing flow.
- Dominant language
- JavaScript
- Stars
- 59
- Forks
- 24
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from SAP/xml-tools
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 52/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·