Closed pettter closed 2 years ago
Seems okay to me, looking at the code. As it relates to the MEI spec, maybe @yrammos is the right person to validate this PR (?).
@pettter thanks for this. The code looks clean and works well in informal testing. xmlns=""
attributes are added to all <graph>
elements, and I don't think this is intentional(?)
UPDATE: diff screenshot attached.
Huh, no you're right that's not intentional. Interestingly, I don't seem to be getting the same issue somehow.
I'm running on node 14.18.1 in Firefox 97.0
Node 14.18.0 on Safari 15.3 here. More likely a WebKit than a node thing, right?
Yes, I can't seem to find anything about it on a quick google, but it's also not the most easy thing to search for.
Could you check if it does the same thing also on the ui
branch, pre-this branch?
It does, actually. It adds the tag to the <respStmt/>
scope and also to <label>
tags — curiously, though, not all of them this time. Screenshots attached.
Might we need to sanitize our output from such dummy attributes?
I think it might be a case of Safari being a bit of a pedant and actually looking at the linked standard and then adding the @xmlns
attribute for any nodes that are not in the stated namespace.
In any case, yes it's an issue that should be addressed, but not by this PR, I don't think.
In that case I'm closing this and merging. Thanks, @pettter .
This changes the behaviour of the app to use
@corresp
attributes instead of@sameas/@copyof
in both layers and analyses, and adds a function to fix files created with the old method. This fixes #162 .