larsgw/citation.js

Wikidata input broken in browser

Closed this issue · 0 comments

Wikidata input seems to be broken in browser only, specifically recognising the API url. On top of that, it doesn't seem to interpret the JSON result correctly. It works fine in Node.js. It probably has been broken for a while, but I never thought of the test case failing as an indication. Another reason to remove all the places where Citation.js just silently fails (e.g. #130).

Reproduce

  1. Go to https://citation.js.org/demo
  2. Input Q30000000 in any field or type Cite('Q30000000') in the DevTools console
  3. There should now be warnings that this input type isn't recognised