Bare cs:names nodes became legal in CSL after the citeproc-js name formatting code was complete. To process them without reworking existing code, I added an addMissingNameNodes() function to the input parsers, and called it from processor code.
The function definition in xmljson.js had a bug that made it over-aggressive. As a result, in some styles an extraneous minimal cs:name node was appended after an existing node, causing formatting attributes to be lost, triggering the bug discussed in #26.
Bare
cs:names
nodes became legal in CSL after theciteproc-js
name formatting code was complete. To process them without reworking existing code, I added anaddMissingNameNodes()
function to the input parsers, and called it from processor code.The function definition in
xmljson.js
had a bug that made it over-aggressive. As a result, in some styles an extraneous minimalcs:name
node was appended after an existing node, causing formatting attributes to be lost, triggering the bug discussed in #26.This PR should clear the bug.