Opened 6 years ago

Closed 6 years ago

#1779 closed defect (fixed)

Some CSLs can only be parsed once

Reported by: simon Owned by: simon
Priority: major Milestone: 2.1 Final
Component: export Version: 2.1
Keywords: Cc: fbennett

Description

http://forums.zotero.org/discussion/16235/21b5-problem-an-error-occurred-generating-your-bibliography-please-try-again/#Comment_81349

I can reproduce this, but as I note in the thread, the style XML appears to be the same between first and second parses. I can copy it out of the stack trace and parse it without a problem. I don't quite know what to make of this, but I'll look into it further.

Frank, if you have any insight into what could cause this, it would be most appreciated. If there's no clear cause beyond SpiderMonkey/E4X weirdness, maybe this is a reason for us to move to the citeproc-js DOM parser?

Change History (1)

comment:1 Changed 6 years ago by simon

  • Resolution set to fixed
  • Status changed from new to closed

(In [7951]) closes #1779: Some CSLs can only be parsed once

Restore global XML properties when Zotero.Cite.makeFormattedBibliography() is complete. At some point, we should probably modify our existing uses of E4X not to rely on these properties being set to their defaults.

Note: See TracTickets for help on using tickets.