Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Fix Decoding of Empty String #145
Fix Decoding of Empty String #145
Changes from 9 commits
f2ce406
3adaa40
e544f76
5ea4fa7
f9fc2f4
2e40e6a
3ccbfb3
800a26a
c4dabba
64f016c
29ee5d9
4bac491
882eca2
e14594b
a966be6
8b99000
0222d24
023dc0d
27cbb5d
085a12b
8691214
f4209dd
e7347b3
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this test pass? If so, I'd prefer to keep it in the test suite
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've played around with this, and it does work if the element is renamed to, say,
notValue
, but I'm encountering an ambiguity with the treatment of thevalue
intrinsic. Would you be content with this if we pushed through the proposed change fromvalue
toxmlValue
as the labeling of the intrinsic?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(or even limiting the intrinsic to
""
)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
""
and"xmlValue"
are both fine,"xmlValue"
(or everything that starts with "xml" for that matter) is not a valid element or attribute, at least according to my understanding of the XML standard:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the other hand, isn't decoding the value of
<container />
element to an empty string is the expected behaviour here? I think I also relied on this in CoreXLSX in some of its behavior if I remember correctly, but this needs to be confirmed.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might seem a bit self-centered, but if it doesn't break CoreXLSX, I'm probably fine with the change, hope MusicXML test suite would pass as well. Just wondering how many other apps and libraries we could break with this change and what would be possible workarounds in that case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hoping we can perhaps circumvent these concerns by changing the use of the
"value"
coding key, per my latest PR! It does mean downstream users would have to introduce= ""
additions, but since this change is probably on the way anyway, I wonder if now is as good a time as any...?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bwetherfield Will this test be added back?